This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
shared libraries does not work
- To: egcs at egcs dot cygnus dot com
- Subject: shared libraries does not work
- From: rajukv at fan dot com
- Date: Fri, 26 Feb 1999 10:04:58 -0500 (EST)
hi,
I downloaded the egcs compiler recently. As for usual compilation, there seems to be no problems. I can even create shared libraries.
The command that I use to create shared libraries is
gcc -fPIC -c *.c
gcc -fPIC -shared -o libfoo.so *.o
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH):`pwd`"
now to link an application (say appln) with the above created library
gcc -o appln appln.c -lfoo
This also works fine. But when I try to run appln, I get the following error:
dynamic linker : appln : error opening libfoo.so
Killed
can anybody tell me what is wrong?
Thanks in advance
Raju
---------------------------------------------------------------------
Get free email from CNN Sports Illustrated at http://email.cnnsi.com/