[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20050715: NetCDF libraries generated but unable to link to th em (4 TXT file attached)
- Subject: Re: 20050715: NetCDF libraries generated but unable to link to th em (4 TXT file attached)
- Date: Fri, 15 Jul 2005 10:05:54 -0600
address@hidden writes:
> Dear Ed,
>
> Thanks for your prompt reply. I cleaned the f90 directory and made the test
> again.
> Please find attached the log from that test (f90_log). Everything sems to be
> OK there.
>
> Also I am sending you the result of the commands:
>
> gmake distclean && ./configure && gmake test
>
> The file is called "log".
OK, everything looks good. I don't think you are having a netcdf
problem.
>> ================================== Begin error
>> ===================================
>> g95 -c netcdf_test.f90 -L/home/andry/Software/netcdf-3.6.0/lib
> -lnetcdf
>> -I/home/andry/Software/netcdf-3.6.0/include
>> g95: -lnetcdf: linker input file unused because linking not done
>> g95 -o netcdf_test.e netcdf_test.o
> -L/home/andry/Software/netcdf-3.6.0/lib
>> -lnetcdf -I/home/andry/Software/netcdf-3.6.0/include
>> Undefined first referenced
>> symbol in file
I think you are providing incorrect options to g95. From the g95
manual:
-c Compile and assemble, but do not link
This is what g95 is complaining about.
Try taking a look at the g95 manual and see if you are really issuing
the commands you want to be issuing. Sorry, but I don't use g95 much,
so I can't take this much further, but it does look like netCDF is not
the problem...
Good luck!
Ed
--
Ed Hartnett -- address@hidden