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.
"Katherine Lundquist" <address@hidden> writes: > Hi Ed, > I was able to compile the c and c++ libraries, but the fortran one > will not build. I need it for WRF (so I think that it has to be build > with intel or pgi??) > efc was the old intel fortran compiler. I downloaded the new ifort > (version 9.X) and tried compiling again, but I am still getting the > same errors. There are few errors in the config.log file, but I am > not sure that they are serious. There are lots of error in the make > test. I am attaching the contents of the configure, config.log, make, > and make test. > > The make test errors look like this: > > make[2]: Entering directory > `/home/citris/ce/klundqui/netcdf-3.6.0-p1/src/nf_test' > /home/citris/ce/klundqui/intel/fc/9.0/bin/ifort -o nf_test > test_get.o test_put.o nf_error.o nf_test.o test_read.o test_write.o > util.o fortlib.o ../libsrc/libnetcdf.a -lm > IPO Error: unresolved : nf_open_ > Referenced in test_get.o > Referenced in test_put.o > Referenced in test_read.o > Referenced in test_write.o > Referenced in util.o > IPO Error: unresolved : nf_get_var1_text_ > Referenced in test_get.o > Referenced in test_put.o > Referenced in test_write.o > Referenced in util.o > > then later....... > > test_get.o(.text+0x62): In function `test_nf_get_var1_text_': > : undefined reference to `nf_open_' > test_get.o(.text+0x272): In function `test_nf_get_var1_text_': > : undefined reference to `nf_get_var1_text_' > test_get.o(.text+0x2b2): In function `test_nf_get_var1_text_': > : undefined reference to `nf_get_var1_text_' > > Any clues on what is going wrong? Like I said before- I added the > CPPFLAGS="-Df2cFortran" flag, as it would not 'make' without it. > Thanks, > Katie > > > > > On Tue, 11 Oct 2005 21:07:47 -0600 > Ed Hartnett <address@hidden> wrote: >> Your fortran compiler seems to be: /usr/mill/bin/efc >> Do you know what that is? I've never seen it before. >> Is that the fortran compiler you intended to use? >> Thanks, >> Ed >> -- >> Ed Hartnett -- address@hidden >> > > > > > No, for intel fortran you need to set: CPPFLAGS=-DpgiFortran FFLAGS="-g -O2 -mp -recursive" Set those, do a make distclean, and try again. Ed -- Ed Hartnett -- address@hidden