[gdal-dev] gdal setup c++

Mateusz Loskot mateusz at loskot.net
Tue Nov 19 01:36:34 PST 2019


On Tue, 19 Nov 2019 at 10:30, Shane Carey <careyshan at gmail.com> wrote:
>
> 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?

By reading documentation of the IDE of your choice
and learning how to add include directories,
and others to set up buildable project for it.

This mailing list does not offer support on how to use IDEs.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list