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

[netCDF #NGV-120646]: Installing NetCDF C++ API on Windows

> Hi again,
> I'm using netcdf-4.1.1.tar.gz, downloaded from
> http://www.unidata.ucar.edu/downloads/netcdf/netcdf-4_1_1/index.jsp. Or
> rather, that's what I would like to do.
> I'm really not sure how to do this. Presumably I could use the C API in
> a C++ program?? Or not? If that's possible, could you provide a fairly
> detailed instruction on how to do that?
> Cheers, thanks for the help.
> Anders

Howdy Anders!

If you google for "using C library in C++" I am sure you will get lots of 
explainations, but basically one just calls the C functions in a normal way 
from C++ code, and everything works.

So include netcdf.h, include the appropriate -I and -L arguments to your 
compiler and linker, and call the C functions from your C++ code.

Good luck!


Ticket Details
Ticket ID: NGV-120646
Department: Support netCDF
Priority: Critical
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.