NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
NOTE: The netcdf-hdf
mailing list is no longer active. The list archives are made available for historical reasons.
winthan <keshunli@xxxxxxxxx> writes: > hi ed, > ÃÂÂÃÂÂÃÂÂÃÂÂÃÂÂÃÂÂÃÂÂÃÂÂthanks ed. i got it compiledÃÂÂby settingÃÂÂCPPFLAGS. > i use the > following information to configure the hdf src and netcdf src. > hdf installation > ------------------------ > ./configure --enable-parallel > --with-zlib=/apps/rhel5/graphics/x86_64/intel/11.1.038/szip/lib > --prefix=/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/ --disable-f90 > netcdf installation > -------------------------- > ÃÂÂ./configure --enable-netcdf-4 > --prefix=/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/netcdf-4.0.1 > --with-hdf5=/usr/rmt_share/scratch95/w/wwinthan/pnetcdf/ --disable-f90 > --with-zlib=/apps/rhel5/graphics/x86_64/intel/11.1.038/szip/lib > ÃÂÂ > I got the following run-time error as follow > ÃÂÂ > ÃÂÂ > ../utilities.cpp:(.text+0xf3d): undefined reference to `nc_create_par' > ../utilities.cpp:(.text+0xf61): undefined reference to `nc_def_dim' > ../utilities.cpp:(.text+0xf8b): undefined reference to `nc_def_dim' > ../utilities.cpp:(.text+0xfba): undefined reference to `nc_def_var' > ../utilities.cpp:(.text+0xfd2): undefined reference to `nc_enddef' > ../utilities.cpp:(.text+0x110e): undefined reference to > `nc_var_par_access' > ../utilities.cpp:(.text+0x1140): undefined reference to > `nc_put_vara_double' > ../utilities.cpp:(.text+0x1158): undefined reference to `nc_close' > thanks > winthan Howdy! Try configuring with --disable-cxx to turn of the c++ api. I also note that you seen to be pointing --with-zlib= at an szlib library. Make sure it points to a directory in which netCDF can find lib/libz.a. Thanks, Ed -- Ed Hartnett -- ed@xxxxxxxxxxxxxxxx
netcdf-hdf
archives: