[GRASS5] Silly Gdal Lib Error

Glynn Clements glynn.clements at virgin.net
Mon Jun 4 21:26:31 EDT 2001


Jeshua Lacock wrote:

> I installed your gdal lib, and when attempting to compile r.in.gdal, I 
> get a "Undefined symbols:
> _GBGetSymbol" error.
> 
> Any ideas?

src/raster/r.in.gdal/gbgetsymbol.c contains two definitions of
GBGetSymbol(); one definition is conditional upon

	#if defined(__unix__)

while the other is conditional upon

	#ifdef _WIN32

It appears that neither of these macros are defined on your system
(clearly it's the first one which should be). The simplest workaround
is to add "-D__unix__" to CFLAGS (e.g. by adding it to COMPILE_FLAGS
in src/CMD/head/head.<platform>).

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list