[Gdal-dev] Build error with GRASS vector in GCC 3.3 but not GCC 4

William Kyngesburye woklist at kyngchaos.com
Mon Sep 19 13:25:28 EDT 2005


I'm trying to add GRASS vector support to GDAL/OGR.  It works on Mac  
OS 10.4 with GCC 4.  But with Mac OS 10.3/GCC 3.3 I have a problem  
with ogrgrasslayer.cpp:

  cp ../o/.libs/ogrgrassdatasource.o ../o/ogrgrassdatasource.o
/bin/sh ../../../libtool --mode=compile g++ -Wall  -I/Users/Shared/ 
src/grass/grass-6.0.1z/dist.powerpc-apple-darwin7.8.0/include   - 
DUSE_CPL -DGRASS_GISBASE=\"/usr/local/gislibs\" -I.. -I../.. -I/usr/ 
local/gislibs/include -I../../../port -I../../../gcore -I../../../alg  
-I../../../ogr -I../../../ogr/ogrsf_frmts -I../../../port -I/usr/ 
local/graphicslibs -I/usr/local/graphicslibs/include -I/usr/local/ 
graphicslibs -I/usr/local/graphicslibs/include -I/usr/local/ 
graphicslibs -I/usr/local/graphicslibs/include -I/usr/local/gislibs/ 
include -I/usr/local/graphicslibs/include -I/usr/local/graphicslibs - 
I/usr/local/graphicslibs/include -I/Users/Shared/src/netcdf/ 
netcdf-3.6.0-p1 -I/Users/Shared/src/netcdf/netcdf-3.6.0-p1/include -I/ 
usr/local/gislibs -I/usr/local/gislibs/include  -c -o ../o/ 
ogrgrasslayer.o ogrgrasslayer.cpp
  g++ -Wall -I/Users/Shared/src/grass/grass-6.0.1z/dist.powerpc-apple- 
darwin7.8.0/include -DUSE_CPL -DGRASS_GISBASE=\"/usr/local/gislibs\" - 
I.. -I../.. -I/usr/local/gislibs/include -I../../../port -I../../../ 
gcore -I../../../alg -I../../../ogr -I../../../ogr/ogrsf_frmts - 
I../../../port -I/usr/local/graphicslibs -I/usr/local/graphicslibs/ 
include -I/usr/local/graphicslibs -I/usr/local/graphicslibs/include - 
I/usr/local/graphicslibs -I/usr/local/graphicslibs/include -I/usr/ 
local/gislibs/include -I/usr/local/graphicslibs/include -I/usr/local/ 
graphicslibs -I/usr/local/graphicslibs/include -I/Users/Shared/src/ 
netcdf/netcdf-3.6.0-p1 -I/Users/Shared/src/netcdf/netcdf-3.6.0-p1/ 
include -I/usr/local/gislibs -I/usr/local/gislibs/include -c  
ogrgrasslayer.cpp  -fno-common -DPIC -o ../o/.libs/ogrgrasslayer.o
ogrgrasslayer.cpp: In constructor `OGRGRASSLayer::OGRGRASSLayer(int,  
Map_info*)
    ':
ogrgrasslayer.cpp:210: error: `GPJ_grass_to_wkt' undeclared (first  
use this
    function)
ogrgrasslayer.cpp:210: error: (Each undeclared identifier is reported  
only once
    for each function it appears in.)
make[3]: *** [../o/ogrgrasslayer.o] Error 1
make[2]: *** [grass-target] Error 2
make[1]: *** [sublibs] Error 2
make: *** [ogr-target] Error 2


It's odd because it's not complaining that it can't find gprojects.h  
(where GPJ_grass_to_wkt is defined).

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what  
does that remind me of?  Ah, yes - life."

- Marvin



More information about the Gdal-dev mailing list