[GRASS-dev] Star in the grass programing

Glynn Clements glynn at gclements.plus.com
Mon May 28 19:45:11 EDT 2007

Juan Diego Giraldo Osorio wrote:

> I'm a begginer user of grass, and I try to make my own tools and
> functions. In the grass6.2 package is the r.example code. I try to
> compile it, but the errors are several:
> main.c:(.text+0x5d): undefined reference to `G_gisinit'
> main.c:(.text+0x62): undefined reference to `G_define_module'


How are you compiling it? Are you using the Makefile or trying to run
gcc manually?

> Also, to compile the module, I need to login into the machine like the
> superuser (root). I think this is incorrect, but the system shows
> /usr/bin/ld: cannot open output file main: Permission denied
> collect2: ld devolvió el estado de salida 1
> when compile the code in my sesion.

You need write permission on the directories containing the GRASS
code. You can use chmod and/or chown (as root) to grant yourself the
necessary permissions.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list