[GRASS-dev] Building a new module for GRASS6.2.3
Jeshua Lacock
jeshua at OpenOSX.com
Fri Mar 28 19:38:23 EDT 2008
On Mar 28, 2008, at 5:14 PM, roberto caselli wrote:
> I have this error message, now (I think it depends by the compiler):
>
> gcc -L/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib -
> Wl,--export-dynamic -Wl,-rpath-link,/home/roberto/grass/
> grass-6.3.0RC6/dist.i686-pc-linux-gnu/lib -o /home/roberto/grass/
> grass-6.3.0RC6/dist.i686-pc-linux-gnu/bin/r.example OBJ.i686-pc-
> linux-gnu/main.o -lgrass_gis -lgrass_datetime -lz -lm -lz
> OBJ.i686-pc-linux-gnu/main.o:(.eh_frame+0x11): undefined reference
> to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [/home/roberto/grass/grass-6.3.0RC6/dist.i686-pc-linux-gnu/
> bin/r.example] Error 1
> roberto at roberto-laptop:~/grass/grass-6.3.0RC6/raster/r.example$
>
> I read I should use g++ compiler, but i don't know what I have to
> change to use it.
Yes, if you compile with g++ it will make the error go away.
You can change the compiler with the CC environment variable like:
export CC=g++
And then run the configure command. Or you can edit your Makefile and
change the CC variable from gcc to g++. Or you can copy that command
and paste it at the command prompt and change gcc to g++ before you
hit the enter key (in the directory of the source you are attempting
to compile).
Ciao,
Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 877.240.1364
More information about the grass-dev
mailing list