[GRASS-user] Problem compiling code

Glynn Clements glynn at gclements.plus.com
Thu Mar 1 16:34:05 EST 2007


Abhinandan Raghavan wrote:

> When I tried compiling a program of mine that I developed with the old 
> version of grass (grass6), it compiled fine. Now, when I just tried 
> compiling the same code, I can't get to do it. I get the following 
> message. I'd be glad for any help that anyone can suggest.
> 
> /usr/bin/ld: warning: libgrass_gis.so, needed by 
> /home/bsm2/abhi/lib/grass6.0.0-i686-pc-linux-gnu-14_03_2005/lib//libgrass_gmath.so, 
> not found (try using -rpath or -rpath-link)

Follow its advice: use -rpath-link, e.g.:

	gcc ... \
	-L/home/bsm2/abhi/lib/grass6.0.0-i686-pc-linux-gnu-14_03_2005/lib \
	-Wl,-rpath-link,/home/bsm2/abhi/lib/grass6.0.0-i686-pc-linux-gnu-14_03_2005/lib \
	-lgrass_gmath.so

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




More information about the grass-user mailing list