roberto caselli wrote:
> I installed the 6.3.0 version and I try to compile the r.example module with
> the changes Clements suggest me to have sources with .cc extensions.
>
> 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
> [EMAIL PROTECTED]:~/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.
Right; you also need to link with $(CXX) rather than $(CC). Putting:
CC = $(CXX)
into r.example/Makefile is probably the simplest solution.
--
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev