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.




Glynn Clements <[EMAIL PROTECTED]> ha scritto: 
roberto caselli wrote:

> Then I typed make and here the message:
> 
> make: *** No rule to make target `OBJ.i686-pc-linux-gnu/main.o', needed by 
> `/home/roberto/grass/grass-6.2.3/dist.i686-pc-linux-gnu/bin/r.example'.  Stop.
> [EMAIL PROTECTED]:~/grass/grass-6.2.3/raster/r.example$ 

6.2.x doesn't have the pattern rules for C++.

I suggest using 6.3.x; otherwise, you'll need to figure out many of
the C++ issues yourself (raster/r.terraflow/Makefile will provide some
clues).

In general, new code should normally be written against the
development version (i.e. the Subversion trunk).

[However, once 6.3.0 is released, there will be two distinct
development branches, 6.4.x and 7.x. 7.x will be highly unstable for
quite a while, so the 6.4 branch should be used if you want the module
to be usable in the near future.]

-- 
Glynn Clements 


       
---------------------------------
Scopri il  Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione!
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to