I have svn up in both source directories and issue the command below from within the r.stream.basins directory

make MODULE_TOPDIR=$a  #(is where my grass7 source directory is)

gcc -g -Wall -Werror-implicit-function-declaration -fno-common - Wextra -Wunused -I/home/ssefick/source/grass/grass7/dist.x86_64- unknown-linux-gnu/include -I/home/ssefick/source/grass/grass7/ dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -I/usr/ include/gdal -I/usr/include -DPACKAGE=\""grassmods"\" -I/home/ ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -I/ home/ssefick/source/grass/grass7/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/io.o -c io.c
io.c: In function ‘ram_create_map’:
io.c:16: warning: format not a string literal and no format arguments
io.c:13: warning: unused variable ‘c’
io.c: In function ‘ram_read_map’:
io.c:139: warning: format not a string literal and no format arguments
io.c: In function ‘seg_create_map’:
io.c:278: warning: format not a string literal and no format arguments
io.c:282: error: implicit declaration of function ‘creat’
io.c:287: warning: format not a string literal and no format arguments
io.c:291: error: implicit declaration of function ‘open’
io.c:293: warning: format not a string literal and no format arguments
io.c:298: warning: format not a string literal and no format arguments
io.c: In function ‘seg_read_map’:
io.c:404: warning: format not a string literal and no format arguments
make: *** [OBJ.x86_64-unknown-linux-gnu/io.o] Error 1


I will help in any I can. Thanks in advance for all of your wonderful help.

Stephen


On Feb 26, 2011, at 2:12 AM, Hamish wrote:

Markus wrote:
This error I don't get. I am using gcc version 4.4.3 (GCC)

But there are a series of compiler warnings like
main.c:126: warning: implicit declaration of function ‘create_distance_mask’
main.c:127: warning: implicit declaration of function ‘read_points’
main.c:130: warning: implicit declaration of function ‘snap_point’
main.c:132: warning: implicit declaration of function ‘write_points’

which should be fixed.

function prototypes added to local_proto.h in r45462.


Hamish




_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to