[GRASS5] Re: help!

Glynn Clements glynn.clements at virgin.net
Mon Sep 2 12:59:29 EDT 2002


Markus Neteler wrote:

> This mail I received today - do we have any recommendations for
> Alberto Bonomi (please cc to him as well)?
> 
> Thanks,
>  Markus
> 
> On Mon, Sep 02, 2002 at 04:42:33PM +0200, bonomialberto at libero.it wrote:
> > 
> >  On Sat, Aug 31, 2002 at 02:49:02PM +0200, bonomialberto at libero.it wrote
> > :
> > good afternoon.I'm a studen of the university of trento(italy).
> >  I have just writen a grass module in c++ and I want to compile it and 
> >  insert in grass, version 5.0.
> >  I've found on the programmer's manual the procedure to compile c 
> >  module. Is it the procedure to compile c++ module the same with g++
> >  to compile or is the procedure very different?
> >  Can yu help to me?

At a minimum, you will need to modify src/CMD/generic/gmake.sh, around
line 289.

At present, it assumes that a ".o" file is either built from ".c" file
using "$(CC)", or from a ".f" file using "$(FC)". You will need to add
similar code to allow for C++ files.

You will also need to use "g++" in the link command (in the Gmakefile)
instead of "$(CC)". The configure script doesn't define "CXX", so you
will need to refer to "g++" explicitly (unless you want to modify
configure.in, src/CMD/head/head.in, maybe some others).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list