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