This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

shared libraries does not work



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/