[GRASS5] compiling code
Glynn Clements
glynn.clements at virgin.net
Tue May 6 16:08:10 EDT 2003
John Gillette wrote:
> I am trying to compile a piece of code outside grass. It comes
> from code with the following includes:
>
>
> (from v.in.tig.basic)
> #include <string.h>
> #include <unistd.h>
> #include <stdlib.h>
> #include "gis.h"
> #include "CC.h"
> #include "dig_atts.h"
> #include "Vect.h"
>
> When I try to compile outside of grass, fseek, fopen
> printf, etc need stdio.h.
gis.h includes stdio.h, as many of the prototypes refer to "FILE *".
> gcc -g -Wall -D__USE_FIXED_PROTOTYPES__ -ansi test.c
>
> How is that being included in Grass code?
Could you rephrase that?
> Also, the coordinate conversion library "CC.h", has
> this usage changed now that we are going to use the standard
> proj4 library? Do you call proj4 routines directly?
I'll let Paul Kelly answer that one; he probably has a better idea as
to how the projection stuff is meant to be used now.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list