This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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