[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #YFV-140332]: netCDF Error
- Subject: [netCDF #YFV-140332]: netCDF Error
- Date: Thu, 20 Mar 2008 10:01:27 -0600
Hi Prabhakar,
> *./TextMap: error while loading shared libraries: libnetcdf.so.4: cannot
> open shared object file: No such file or directory*
indicates an error in linking your program with the netCDF libraries.
What are the command lines you use to compile and link your program?
For example, when I compile and link the example C++ program in
examples/CXX/simple_xr_wr.cpp, I use:
$ CC -I/local/netcdf/include -g -c simple_xy_wr.cpp
$ CC -g -L/local/netcdf/lib -o simple_xy_wr simple_xy_wr.o -lnetcdf_c++
-lnetcdf
after installing in /local/netcdf.
It's possible libnetcdf.so.4 is a leftover symbolic link to a previous
version of a library in a directory you specify with -L or in your
LD_LIBRARY_PATH.
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: YFV-140332
Department: Support netCDF
Priority: Normal
Status: Closed