[GRASS5] compiling code

Markus Neteler neteler at itc.it
Wed May 7 03:11:30 EDT 2003


On Tue, May 06, 2003 at 07:28:19PM +0100, Paul Kelly wrote:
> On Tue, 6 May 2003, John Gillette wrote:
> 
> > When I try to compile outside of grass, fseek, fopen
> > printf, etc need stdio.h.
> >
> > gcc -g -Wall -D__USE_FIXED_PROTOTYPES__ -ansi test.c
> >
> > How is that being included in Grass code?
> 
> stdio.h is included in gis.h. But in my experience lots of GRASS programs
> are missing header files. It is usually more recent additions however, not the
> older ones.

... this is an invitation to compile GRASS with -Wall. All
developers may eliminate compiler warnings whenever possible
(delete unused variables, add missing headers etc).

Thanks,
 
 Markus




More information about the grass-dev mailing list