[GRASS-windows] Compiling r.example for WINGRASS

António Rocha antonio.rocha at deimos.com.pt
Wed Nov 11 09:27:05 EST 2009


Greetings All

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?

Thanks

Best regards,
Antonio Rocha


Colin Nielsen wrote:
> Hi Antonio,
> Have you looked at http://trac.osgeo.org/grass/wiki/CompileOnWindows
> There are instructions there for compiling grass on a windows machine
> specifically.
>
> >From the error message, it looks like you're missing a couple of
> required dependencies (gettext,libintl) these are available from the
> osgeo4w installer (see link above).
>
> -Colin
>
> 2009/11/9 António Rocha <antonio.rocha at deimos.com.pt>:
>   
>> 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
>>
>>
>> _______________________________________________
>> grass-windows mailing list
>> grass-windows at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-windows
>>
>>     
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4594 (20091111) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
>   



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4595 (20091111) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-windows mailing list