On 01/06/2012 12:09 PM, Johan Van de Wauw wrote:
It is not needed to recompile gdal to be able to compile your program.
Make sure that the libgdal1-dev package installed and then
Antonio gives the right answer: you should run

On Thu, Jan 5, 2012 at 9:43 PM, Antonio Valentino
<[email protected]>  wrote:

$ gcc -o test gdalprogram.c -I /usr/include/gdal -lgdal1.7.0
Or you should adapt to whatever version of libgdal is installed (ls
/usr/lib/libgdal*.so  will tell you).
eg for libgdal1.8.0.so add -lgdal1.8.0

This will link your executable to the the gdal library.

Johan


best regards

--
Antonio Valentino
_______________________________________________
UbuntuGIS mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki
_______________________________________________
UbuntuGIS mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki
Thank you guys for your help. Version 1.8.0 of libgdal was already installed in /usr/lib and the command line suggested worked without any compilation error. You guys rock!

Regards,
Alassane
_______________________________________________
UbuntuGIS mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

Reply via email to