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.
> Hello, > > I've downloaded beginning of the week the new beta release, and > installed it on my linux pc (red hat enterprise). > I had the pgf95 before but now I want to run my model with the ifort, so > I made sure, netcdf was installed with ifort. Worked fine. > > My netcdf routines are written in f90. > > Okay. To compile the model, I've used this command: > > ifort netcdf_routines.f90 -o out.x > -I/usr/local/share/netcdf-3.6.2-beta3/f90 -L/usr/local/netcdf_3.6.2/lib > -lnetcdf > > And I had the following errors (lots): > /tmp/ifort18LZkm.o(.text+0xc3): In function `sub_opennext_': > : undefined reference to `netcdf_mp_nf90_open_' > /tmp/ifort18LZkm.o(.text+0x100): In function `sub_opennext_': > : undefined reference to `netcdf_mp_nf90_open_' > /tmp/ifort18LZkm.o(.text+0x1af): In function `sub_opennext_': > : undefined reference to `netcdf_mp_nf90_inq_varid_' > > Then I've tried a lot to find out more about this error. When I compile > the file with the option "-c" there are no errors, so it has something > to do with the linking. > > Today I gave up. Last idea I had was just to install the netcdf version > 3.6.1 and try that one. > ifort netcdf_routines.f90 -o out.x > -I/usr/local/share/netcdf-3.6.1/src/f90 -L/usr/local/netcdf_3.6.1/lib > -lnetcdf > > And no errors anymore! > > Just to let you know... > > > Jenny > Howdy Jenny! This may have something to do with shared libraries. In the next beta release, shared libraries are not built by default, as they were in 3.6.2-beta3. So perhaps you could try the next beta and see how it works for you. I'll be releaseing the next beta as soon as I can (probably another week at least). I'll announce it on the netCDF mailing list. Thanks for reporting this! Ed Hartnett Ticket Details =================== Ticket ID: THW-751713 Department: Support netCDF Priority: Normal Status: Closed