[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BHW-570052]: Problem with NF90_CREATE



Hi Mike,

> I am trying to create a fresh netCDF archive using the FORTRAN interface and 
> am receiving the following error upon compilation:
> 
> windsubs.f:(.text+0x2098): undefined reference to `netcdf_mp_nf90_create_'
> 
> Arising from the method call:
> 
> status = NF90_CREATE(path = "foo.nc",
> &         cmode = NF90_CLOBBER, ncid = ncid)
> 
> 
> I have included a 'USE netcdf' call at the top of my subroutine, that seems 
> to be loading the module properly.
> 
> The fortran code is being compiled with the following flags:
> 
> /opt/intel/Compiler/11.1/064/bin/intel64/ifort  -O1  -convert big_endian -I 
> /home/mbueti/netcdf/include/ -L /home/mbueti/netcdf/lib -lnetcdf -o windonly 
> MAIN.o windsubs.o

I think you need to change the order of your arguments so that the library
is searched after the object files:

  /opt/intel/Compiler/11.1/064/bin/intel64/ifort  -O1  -convert big_endian -I 
/home/mbueti/netcdf/include/ -o windonly MAIN.o windsubs.o -L 
/home/mbueti/netcdf/lib -lnetcdf 

--Russ


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: BHW-570052
Department: Support netCDF
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.