-
Thanks for the reply.
While I was able to get NCO to compile, and even "make check" worked (though doesn't seem to do much), I am still not 100% sure that it is actually working properly with netCDF v4 files (tests with netCDF classic format appeared to work). I will try some more tests tomorrow, but this evening I was getting errors like this when I tried a simple ncks operation on a netCDF...
2009-12-02 23:24:36 UTC in NCO netCDF Operators
-
Ok - it was quite a hassle - took me all day to figure out, but I finally got nco to compile on my system. The key was to patch a couple of the header files `nco_typ.h` and `nco_netcdf.h` so that various function calls to nc_ functions were "inlined" which seems to have resolved the duplicate symbol problems. See detailed build notes below.
Build notes for NCO - 2 December 2009
Jed O.
2009-12-02 18:17:20 UTC in NCO netCDF Operators
-
I've copied the terminal lines from above into format that is easier to read. Please see below. Thanks, Jed
`/bin/sh ../../libtool --tag=CXX --tag=CC --mode=link icc -std=c99 -fno-common -O3 -xT -ip -no-prec-div -m64 -parallel -std=c99 -D_BSD_SOURCE -L/usr/local/lib -o ncap ncap_utl.o ncap.o ncap_yacc.o ncap_lex.o libnco.la -ludunits2 -lresolv -lm -lnetcdf -ludunits2`
`libtool...
2009-12-02 14:34:35 UTC in NCO netCDF Operators
-
Hello,
I am using a recent snapshot version of netCDF 4.1 (1 December 2009) and having the duplicate symbol errors posted below trying to compile either nco 3.9.9 or the latest cvs version. I've tried different CPPFLAGS (-DHAVE_NETCDF4_H) and even trying to modify nco_netcdf.h, but nothing works. Any suggestions you can give for getting nco compiled would be much appreciated!
Thanks, Jed.
2009-12-02 09:58:40 UTC in NCO netCDF Operators