[GRASS-windows] Compiling r.example for WINGRASS

António Rocha antonio.rocha at deimos.com.pt
Mon Nov 9 11:18:31 EST 2009


Greetings

Based on previous messages 
(http://lists.osgeo.org/pipermail/grass-windows/2009-March/001684.html) 
I'm starting to go deep into WinGrass. So, I decided to try and compile 
r.example.
I'm using gcc (included in Dev-C++) and I use as command:
gcc.exe "C:\GRASS6\tests\r.example\main.c" -o 
"C:\GRASS6\tests\r.example\main.exe" -I"C:\GRASS6\include"

And I got the following error:

/In file included from C:\GRASS6\tests\r.example\main.c:23:
C:/GRASS6/include/grass/glocale.h:9:21: libintl.h: No such file or directory
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 int
eger without a cast
/
Has anyone have an idea of how to solve this? Or any "tutorial/handbook" 
to solve this?

Thanks

Best Regards
António Rocha


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4588 (20091109) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-windows mailing list