[GRASS5] test module linking problem
Glynn Clements
glynn.clements at virgin.net
Thu Feb 27 16:02:46 EST 2003
manderso at cs.wisc.edu wrote:
> I've been trying to get just a tiny little baby test grass module to
> compile, and I'm running into a linking problem. I attempted to compile the
> program:
>
> g++ -c -o pointdump.o pointdump.cpp -I/scratch/grass/src/grass5.0.1/src/include
>
> and then to link it:
>
> g++ -L/scratch/grass/src/grass5.0.1/src/libes/LIB.i686-pc-linux-gnu\
> -L/u/m/a/manderso/grass/lib\
> -L/s/lapack/lib\
> -o pointdump\
> pointdump.o\
> -lvect -ldig2 -lgis -ldig_atts\
> /scratch/grass/src/grass5.0.1/src/libes/vect32/libes/LIB.i686-pc-linux-gnu/libtrans.a\
> -lvask -lncurses -ltermcap -lbsd-compat -lm -lz
> pointdump.o: In function `main':
The GRASS headers don't explicitly support C++, so you need to include
them using e.g.:
extern "C" {
#include "gis.h"
}
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list