[gdal-dev] Undefined reference with GDAL and netCDF support

Even Rouault even.rouault at mines-paris.org
Mon Apr 28 10:57:39 PDT 2014


Le lundi 28 avril 2014 17:33:04, henry wasker a écrit :
> Hello,
> 
> I try to use a simple test program which must use GDAL and netcdf support.
> This test is for constraints and specifications. Here's this code
> (main.cpp)
> 
> #include "gdal_priv.h"
> #include "netcdfdataset.h"
> 
> using namespace std;
> 
> int main() {
> 
>    netCDFDataset child;
> 
> }
> 

I've stopped reading here. Don't do this. Use the GDAL API. The A in GDAL is 
for Abstraction ;-) You should never ever need to use a concrete 
implementation of a dataset. Look at http://www.gdal.org/gdal_tutorial.html .

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list