[gdal-dev] gdal setup c++

Shane Carey careyshan at gmail.com
Tue Nov 19 01:30:24 PST 2019


Hi,

I'm trying to get started with c++ dev and gdal with codelite.
I downloaded the zip:
http://download.osgeo.org/gdal/3.0.2/gdal302.zip
and then extracted it and setup my links as follows:
compiler: /home/shane/cPlus/gdal3.0.2
Linker: /home/shane/cPlus/gdal3.0.2

However when I go to build a very simple program:

#include <iostream>
#include <alg/gdal_alg.h>

int main(){
int favourite_number;
    std::cout << "Enter a number between 1 and 100:";
    std::cin >> favourite_number;
    std::cout << "Amazing, mine too " << std::endl;
return 0;
}

I get an error:
No such file or directory: alg/gdal_alg.h
How do I link it properly?
Thanks
Le gach dea ghui,
*Shane Carey*
*GIS and Data Solutions Consultant*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191119/c85a7303/attachment.html>


More information about the gdal-dev mailing list