[Gdal-dev] Different compiler problem

Jonathan Greenberg jgreenberg at arc.nasa.gov
Thu Nov 10 18:38:08 EST 2005


Excellent, Mr. Smithers -- I had to manually remove gdal 1.2.6 from fink
first, then the install went flawlessly...

--j


On 11/10/05 3:05 PM, "Frank Warmerdam" <warmerdam at pobox.com> wrote:

> 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


-- 
Jonathan A. Greenberg, PhD
NRC Research Associate
NASA Ames Research Center
MS 242-4
Moffett Field, CA 94035-1000
Office: 650-604-5896
Cell: 415-794-5043
AIM: jgrn307
MSN: jgrn307 at hotmail.com





More information about the Gdal-dev mailing list