[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #BHW-570052]: Problem with NF90_CREATE
- Subject: [netCDF #BHW-570052]: Problem with NF90_CREATE
- Date: Thu, 14 Oct 2010 11:32:31 -0600
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