[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DFZ-281749]: Need Netcdf Support



Hi,

Sorry it has taken so long to respond to your question.
> I've stumbled on some NetCDF problem today, trying to install (RNNLib)
> which is based like deal II on NetCDF I've got pretty much the same errors
> (below) :
> -------------------------------
> 
> make all-recursive
> 
> make[1]: Entering directory `/mnt/liviu/Downloads/rnnlib'
> Making all in src
> make[2]: Entering directory `/mnt/liviu/Downloads/rnnlib/
> src'
> g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT Main.o -MD -MP -MF .deps/Main.Tpo
> -c -o Main.o Main.cpp
> 
> mv -f .deps/Main.Tpo .deps/Main.Po
> g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT Random.o -MD -MP -MF
> .deps/Random.Tpo -c -o Random.o Random.cpp
> mv -f .deps/Random.Tpo .deps/Random.Po
> g++ -g -O2 -o ../bin/rnnlib DataExporter.o Main.o Random.o -lm -lstdc++
> 
> Main.o: In function `load_nc_dim':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:38: undefined reference
> to `NcFile::get_dim(char const*) const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:44: undefined reference
> to `NcDim::size() const'

These missing class methods, NcFile::get_dim() and NcDim::size(), are defined in
the netCDF C++ library, but the options to the g++ compiler don't specify where
that library is installed.  For example, if it was installed in 
/usr/local/lib/libnetcdf_c++.a, 
then there should have been "-L/usr/local/lib -lnetcdf_c++" on the g++ command
line.  Perhaps the netCDF C++ library is not installed on your computer.  If it 
has been
installed, you'll have to specify where it is in the Makefile for rnnlib or to 
it's configure
script.

--Russ

> Main.o: In function `load_nc_variable':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:52: undefined reference
> to `NcFile::get_var(char const*) const'
> Main.o: In function `get_nc_string':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:73: undefined reference
> to `NcVar::edges() const'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:76: undefined reference
> to `NcVar::set_cur(long*)'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:79: undefined reference
> to `NcVar::get(char*, long const*) const'
> 
> Main.o: In function `load_nc_array<double>':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:95: undefined reference
> to `NcVar::num_dims() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:96: undefined reference
> to `NcVar::set_cur(long*)'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:97: undefined reference
> to `NcVar::num_dims() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:98: undefined reference
> to `NcVar::edges() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:99: undefined reference
> to `NcVar::num_dims() const'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:106: undefined reference
> to `NcVar::get(double*, long const*) const'
> Main.o: In function `load_nc_array<int>':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:95: undefined reference
> to `NcVar::num_dims() const'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:96: undefined reference
> to `NcVar::set_cur(long*)'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:97: undefined reference
> to `NcVar::num_dims() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:98: undefined reference
> to `NcVar::edges() const'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:99: undefined reference
> to `NcVar::num_dims() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:106: undefined reference
> to `NcVar::get(int*, long const*) const'
> 
> Main.o: In function `~NetcdfDataset':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> Main.o: In function `DataList::delete_dataset()':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> Main.o: In function `~NetcdfDataset':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> Main.o: In function `~DataList':
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> Main.o: In function `NetcdfDataset::init()':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:329: undefined reference
> to `NcFile::is_valid() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:329: undefined reference
> to `NcFile::is_valid() const'
> 
> Main.o: In function `DataHeader':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:143: undefined reference
> to `NcFile::NcFile(char const*, NcFile::FileMode, unsigned int*, unsigned
> int, NcFile::FileFormat)'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:144: undefined reference
> to `NcFile::is_valid() const'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:144: undefined reference
> to `NcFile::is_valid() const'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:145: undefined reference
> to `NcError::NcError(NcError::Behavior)'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:145: undefined reference
> to `NcError::~NcError()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:143: undefined reference
> to `NcFile::~NcFile()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:145: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:143: undefined reference
> to `NcFile::~NcFile()'
> 
> Main.o: In function `NetcdfDataset':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:318: undefined reference
> to `NcFile::NcFile(char const*, NcFile::FileMode, unsigned int*, unsigned
> int, NcFile::FileFormat)'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:318: undefined reference
> to `NcError::NcError(NcError::Behavior)'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:318: undefined reference
> to `NcFile::~NcFile()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:318: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:306: undefined reference
> to `NcFile::NcFile(char const*, NcFile::FileMode, unsigned int*, unsigned
> int, NcFile::FileFormat)'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:306: undefined reference
> to `NcError::NcError(NcError::Behavior)'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:306: undefined reference
> to `NcFile::~NcFile()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:306: undefined reference
> to `NcError::~NcError()'
> Main.o: In function `~NetcdfDataset':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> 
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> Main.o: In function `DataList::delete_dataset()':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> Main.o: In function `~NetcdfDataset':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcError::~NcError()'
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> 
> Main.o: In function `DataList::next_dataset()':
> /mnt/liviu/Downloads/rnnlib/src/NetcdfDataset.hpp:324: undefined reference
> to `NcFile::~NcFile()'
> collect2: ld returned 1 exit status
> --------------------
> 
> Thanks in advance for your kind support
> Liviu
> --
> Dr. Liviu Vladutu
> PhD, MSc, BSc
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: DFZ-281749
Department: Support netCDF
Priority: Normal
Status: Closed