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 <antonio.valent...@tiscali.it> 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 > Ubuntu@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/ubuntu > http://trac.osgeo.org/ubuntugis/wiki _______________________________________________ UbuntuGIS mailing list Ubuntu@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/ubuntu http://trac.osgeo.org/ubuntugis/wiki