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.
Robert, > To: "'address@hidden'" <address@hidden> > From: "Boucher, Robert J." <address@hidden> > Subject: Make Test Failing > Organization: Litton-TASC > Keywords: 200002291517.IAA20024 In the above message, you wrote: ... > Making `test' in directory /usr/wfrm/netcdf-3.4/src/nf_test=0A= > =0A= > make[2]: Entering directory `/usr/wfrm/netcdf-3.4/src/nf_test'=0A= > + fort -c -g test_get.F=0A= > + fort -c -g test_put.F=0A= > + fort -c -g nf_error.F=0A= > + fort -c -g nf_test.F=0A= > + fort -c -g test_read.F=0A= > + fort -c -g test_write.F=0A= > + fort -c -g util.F=0A= > cc -c -g fortlib.c=0A= > fort -o nf_test -g 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 = > =0A= > test_get.o: In function `test_nf_get_var1_text':=0A= > :1670: undefined reference to `nf_open__'=0A= > :1670: undefined reference to `nf_open__'=0A= > :1670: undefined reference to `nf_open__'=0A= > :1679: undefined reference to `nf_get_var1_text__'=0A= > :1679: undefined reference to `nf_get_var1_text__'=0A= > :1679: undefined reference to `nf_get_var1_text__'=0A= > :1682: undefined reference to `nf_get_var1_text__'=0A= > :1682: undefined reference to `nf_get_var1_text__'=0A= ... Your Fortran compiler is following a particular convention for converting the names of routines that contain underscores. The C compiler needs to be told to use this convention in order to make its functions available to Fortran. Try the following: 1. Go to the top-level source directory. 2. Perform steps 3 through 5 near the end of the INSTALL file. 3. Ensure that the CPPFLAGS environment variable contains the string "-Df2cFortran". 4. Perform steps 6 through 9 near the end of the INSTALL file. Please let me know if this helps. Regards, Steve Emmerson <http://www.unidata.ucar.edu>