|
|
发表于 2005-12-19 18:57:48
|
显示全部楼层
you may set the `LD_LIBRARY_PATH' environment variable manually, which doesn't require root privileges.
eg:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/ds/lib
then you should be able to link libraries under ~/ds/lib
$ gcc exam01.c -o exam01 -g -O2 -Wall -L ~/ds/lib -ldemo |
|