[Gdal-dev] Different compiler problem

Frank Warmerdam warmerdam at pobox.com
Thu Nov 10 18:05:41 EST 2005


On 11/10/05, Jonathan Greenberg <jgreenberg at arc.nasa.gov> wrote:
> With this config call:
>
> ./configure --prefix=/sw --with-local=/sw --without-python
> --with-geotiff=internal --with-hdf4=no --without-ogdi --without-pg
> --without-mysql --with-geos --with-static-proj4=/sw --with-threads
> --with-libtiff=/sw --with-geotiff=internal --with-jpeg=/sw --with-gif=/sw
> --with-png=/sw
>
> I'm getting this failure:
>
>  g++-3.3 -DHAVE_MITAB -Wall -Os -I/sw/include -I../port -I../gcore -I../alg
> -I../ogr -I../ogr/ogrsf_frmts -Os -I/sw/include -I/sw/include -I/sw/include
> -I../port -I/sw -I/sw/include -I/sw -I/sw/include -I/sw/include -I/sw
> -I/sw/include -c gdalopeninfo.cpp  -fno-common -DPIC -o .libs/gdalopeninfo.o
> In file included from gdal_priv.h:256,
>                  from gdalopeninfo.cpp:40:
> gdal.h:155: error: syntax error before `(' token
>

Jonathan,

I see the first include is -I/sw/include, so if there are any old
gdal inclue files there they will override the local GDAL include
files, screwing things up in the fashion you have encountered.
I have made a considerable effort to ensure that GDAL always
gives precidence to local include files.

I'm not sure what has resulted in -I/sw/include getting shoved in
the front in this case.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list