[GRASS5] From Grass5.4 to Grass6.0

Glynn Clements glynn at gclements.plus.com
Tue Mar 7 21:51:53 EST 2006


Damiano Triglione wrote:

> Hello, I am trying hardly to convert a module of my own from
> Grass5.4 to Grass6.0.
> 
> Apart the stuffs about sitelist format (not supported any more), I
> have a problem configuring the makefile, since the old one does not
> work actually.
> 
> I tried to steal ideas from "Module.make" file in the Grass6
> Distribution files, but it happens a strange thing: intructions such
> as G_calloc and G_percent are compiled if in main.c ; but if they
> are in another source file, I have the error message "undefined
> regerence to '..'", for example
> 
> OBJ.grass60-linux-gnu/structs.o(.text+0x3b):/home/user/mysrc/rr046-b1/structs.c:18: undefined reference to `G_calloc'
> 
> Can anyone help me, please?

Are you trying to build an executable or a library?

In any case, I suggest basing your Makefile upon an existing one for a
similar module (one which uses roughly the same set of libraries).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list