Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I link my application to the netCDF Client Library?

0
Posted

How do I link my application to the netCDF Client Library?

0

If your application accesses netCDF data through the standard netCDF library, it should be fairly straight forward to relink it with the OPeNDAP enabled netCDF library. First off, you will need some OPeNDAP libraries: the third-party-packages libraries; the OPeNDAP core (DAP) libraries; and the OPeNDAP netCDF library (see the Note below for some comments on library and compiler compatibilities). Second, you need to link your application with these libraries. This should involve adding several library flags to your normal compiling/linking commands. In particular: • Instead of ‘-I/usr/local/netcdf/include’ use the results of ncdap-config –cflags • Instead of ‘-L/usr/local/netcdf/lib’ and ‘-lnetcdf’ use the results of ncdap-config –libs For instance, • OPeNDAP libnc-dap 3.7.4 release g++ -c -o sample.o `ncdap-config –cflags` sample.c g++ -g -o sample sample.o `ncdap-config –libs` Note: We have found that using our pre-built binary versions of the libraries for relinking with your app

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123