Hi - since my Suse 10.1 didn't have netcdf support enabled by default, I downloaded the sources from http://www.unidata.ucar.edu/software/netcdf/ then did ./configure --prefix=/usr make make test --> succeeded make extra_test --> succeeded make install
In my /usr/include I now have the files netcdfcpp.h netcdf.h netcdf.hh and in /usr/lib I have libnetcdf.a libnetcdf_c++.a And while now my program using netcdf compiles fine, the linker will complain about undefined references - I tried compiling with g++ -o test test.cpp g++ -o test test.cpp -lnetcdf g++ -o test test.cpp -lnetcdf_c++ g++ -o test test.cpp -lnetcdf -lnetcdf_c++ and with g++ -o test test.cpp /usr/lib/libnetcdf.a g++ -o test test.cpp /usr/lib/libnetcdf_c++.a g++ -o test test.cpp /usr/lib/libnetcdf.a /usr/lib/libnetcdf_c++.a also g++ -o test -I/usr/include -L/usr/lib test.cpp All of them fail :( Program test.cpp: -------------------- #include <netcdf.hh> using namespace std; int main( int argc, char ** argv ) { NcFile file("out.txt", NcFile::Replace); return 0; } ------------------------ Anyone able to help? Regards, Lars _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus