[GRASS-dev] Star in the grass programing

Juan Diego Giraldo Osorio Juan.Giraldo at upct.es
Mon May 28 11:08:36 EDT 2007


Greetings to coworkers

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'
main.c:(.text+0x7c): undefined reference to `G_define_standard_option'
main.c:(.text+0x8a): undefined reference to `G_define_standard_option'
main.c:(.text+0x93): undefined reference to `G_define_flag'
main.c:(.text+0xbc): undefined reference to `G_parser'
main.c:(.text+0x103): undefined reference to `G_find_cell2'
main.c:(.text+0x121): undefined reference to `G_fatal_error'
main.c:(.text+0x12a): undefined reference to `G_legal_filename'
main.c:(.text+0x141): undefined reference to `G_fatal_error'
main.c:(.text+0x14e): undefined reference to `G_raster_map_type'
main.c:(.text+0x15e): undefined reference to `G_open_cell_old'
main.c:(.text+0x17a): undefined reference to `G_fatal_error'
main.c:(.text+0x18e): undefined reference to `G_get_cellhd'
main.c:(.text+0x1a5): undefined reference to `G_fatal_error'
main.c:(.text+0x1bf): undefined reference to `G_debug'
main.c:(.text+0x1c7): undefined reference to `G_allocate_raster_buf'
main.c:(.text+0x1d0): undefined reference to `G_window_rows'
main.c:(.text+0x1d8): undefined reference to `G_window_cols'
main.c:(.text+0x1e3): undefined reference to `G_allocate_raster_buf'
main.c:(.text+0x1f3): undefined reference to `G_open_raster_new'
main.c:(.text+0x20f): undefined reference to `G_fatal_error'
main.c:(.text+0x231): undefined reference to `G_percent'
main.c:(.text+0x243): undefined reference to `G_get_raster_row'
main.c:(.text+0x25a): undefined reference to `G_fatal_error'
main.c:(.text+0x3ad): undefined reference to `G_put_raster_row'
main.c:(.text+0x3c4): undefined reference to `G_fatal_error'
main.c:(.text+0x3dd): undefined reference to `G_free'
main.c:(.text+0x3e6): undefined reference to `G_free'
main.c:(.text+0x3ee): undefined reference to `G_close_cell'
main.c:(.text+0x3f6): undefined reference to `G_close_cell'
main.c:(.text+0x40b): undefined reference to `G_short_history'
main.c:(.text+0x417): undefined reference to `G_command_history'
main.c:(.text+0x427): undefined reference to `G_write_history'

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.

Thank for your help

Juan Diego Giraldo Osorio
UPCT
España





More information about the grass-dev mailing list