[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #NGV-120646]: Installing NetCDF C++ API on Windows
- Subject: [netCDF #NGV-120646]: Installing NetCDF C++ API on Windows
- Date: Tue, 12 Oct 2010 17:20:47 -0600
> 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!
Ed
Ticket Details
===================
Ticket ID: NGV-120646
Department: Support netCDF
Priority: Critical
Status: Closed