[GRASS-dev] Inline functions in GRASS

Māris Nartišs maris.gis at gmail.com
Thu Aug 3 04:19:16 EDT 2006


According to debugging.txt, GRASS should compile with  
CFLAGS='-g -ansi -Wall -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_POSIX_SOURCE=1 -D_POSIX_C_SOURCE=199506L'
But r.carve would fail to compile because it uses inline functions introduced 
in C99 (ISO/IEC 9899:1999). 

So - who's wrong - debugging.txt or r.carve?


Maris.


grass-6.1.0RC1/raster/r.carve$ make
gcc -I/home/maris/soft/grass-6.1.0RC1/dist.i686-pc-linux-gnu/include  -g -ansi -Wall -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_POSIX_SOURCE=1 -D_POSIX_C_SOURCE=199506L    -I/usr/include     -DPACKAGE=\""grassmods"\"  -I/home/maris/soft/grass-6.1.0RC1/dist.i686-pc-linux-gnu/include 
\
                -o OBJ.i686-pc-linux-gnu/enforce_ds.o -c enforce_ds.c
enforce_ds.c:17: error: syntax error before ‘void’
enforce_ds.c:20: error: syntax error before ‘void’
enforce_ds.c:21: error: syntax error before ‘void’
enforce_ds.c:23: error: syntax error before ‘void’
enforce_ds.c:25: error: syntax error before ‘double’
enforce_ds.c: In function ‘process_line’:
enforce_ds.c:82: warning: unused variable ‘j’
enforce_ds.c: At top level:
enforce_ds.c:194: error: syntax error before ‘void’
enforce_ds.c:204: error: syntax error before ‘void’
enforce_ds.c:230: error: syntax error before ‘void’
enforce_ds.c:258: error: syntax error before ‘void’
enforce_ds.c:288: error: syntax error before ‘double’
make: *** [OBJ.i686-pc-linux-gnu/enforce_ds.o] Error 1




More information about the grass-dev mailing list