[GRASS-dev] Building a new module for GRASS6.2.3
roberto caselli
roberto.caselli at yahoo.it
Fri Mar 28 19:14:09 EDT 2008
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
roberto a 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.
Glynn Clements <glynn a gclements.plus.com> 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.
> roberto a roberto-laptop:~/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!
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080329/8d40508a/attachment.html
More information about the grass-dev
mailing list