[GRASS5] Definition of main() in lib/vector/rtree
Paul Kelly
paul-grass at stjohnspoint.co.uk
Wed Mar 2 04:57:02 EST 2005
I was just re-compiling v.surf.idw and noticed a warning about the
definition of main in libgrass_rtree.so being pre-empted:
cc -s -s -L/usr/local/lib
-L/indigo-disk2/grass/grass51/dist.mips-sgi-irix6.2/lib
-I/usr/local/include -DPACKAGE=\""grassmods"\" -o
/indigo-disk2/grass/grass51/dist.mips-sgi-irix6.2/bin/v.surf.idw
OBJ.mips-sgi-irix6.2/main.o OBJ.mips-sgi-irix6.2/read_sites.o -lgrass_vect
-lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient
-lgrass_dbmibase -L/usr/local/lib -lgdal -lgrass_gis -lgrass_datetime -lz
-lgrass_datetime -lm -lz
ld: WARNING 85: definition of main in OBJ.mips-sgi-irix6.2/main.o preempts
that definition in
/indigo-disk2/grass/grass51/dist.mips-sgi-irix6.2/lib/libgrass_rtree.so.
I had a look there and there is a main() in lib/vector/rtree/gammavol.c
and sphvol.c. As these files are part of the library and never called on
their own it would seem to be OK to just delete the main() from these two
files---anyone disagree?
Paul
More information about the grass-dev
mailing list