[gdal-dev] strange problem with compilation
Martin Landa
landa.martin at gmail.com
Mon Oct 13 04:41:11 PDT 2014
Hi,
2014-10-13 13:33 GMT+02:00 Martin Landa <landa.martin at gmail.com>:
> g++ -I /usr/local/include -L /usr/local/lib -lgdal main.cpp
>
> Error:
>
> undefined reference to GDALAllRegister
solved,
g++ mail.cpp -I /usr/local/include -L /usr/local/lib -lgdal
works (so `-l` after cpp file).
Strangely g++ 4.7 works on both commands. Only g++ 4.8 fails...
Huh, sorry for the noise, Martin
--
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
More information about the gdal-dev
mailing list