[GRASS-windows] Compiling r.example for WINGRASS

Glynn Clements glynn at gclements.plus.com
Thu Nov 12 09:48:50 EST 2009


António Rocha wrote:

> Thanks Colin now I'm not getting any libraries errors.
> Now I'm compiling with Msys by using the following command:
> 
> gcc c:/grass6/tests/r.example/main.c -o c:/r.example.exe -I c:/osgeo4w/apps/grass/grass-6.4.0svn/include/
> 
> And I get the following error:
> c:/grass6/tests/r.example/main.c: In function `main':
> c:/grass6/tests/r.example/main.c:83: error: `PACKAGE' undeclared (first use in this function)
> c:/grass6/tests/r.example/main.c:83: error: (Each undeclared identifier is reported only once
> c:/grass6/tests/r.example/main.c:83: error: for each function it appears in.)
> c:/grass6/tests/r.example/main.c:122: warning: assignment makes pointer from integer without a cast
> c:/grass6/tests/r.example/main.c:127: warning: assignment makes pointer from integer without a cast
> 
> Is this a common error with r.example?

Not if you use the Makefile, i.e. "make -C doc/raster/r.example".

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list