"Lars Uffmann" <[EMAIL PROTECTED]> writes: > And while now my program using netcdf compiles fine, the linker will > complain about undefined references - I tried compiling with
It seems you've tried all possible combinations, except the correct one: g++ -o test test.cpp -lnetcdf_c++ -lnetcdf To understand why the order of archive libraries on command line matters, read this: http://webpages.charter.net/ppluzhnikov/linker.html Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus