shared library linking

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at
Sat Dec 20 20:33:26 UTC 2003

Back to linux:

I have a set of object files resulting from compiling a project and I want
to make them into a shared library. But I can't. It only works if I link
against which links to It's as follows:

gcc -shared -o foo.o /lib/ ok, also links to

gcc -shared -o foo.o /lib/ ng, ldd complains

gcc -shared -o foo.o /lib/ /lib/
	ok, ldd complains about possible conflict<->,
	linked against both and (which has precendence?)

All other current system libs (like libc etc) are linked against

What could cause this strangeness ? I suspect that my compiler setup is
somehow wrong. Any input would be much appreciated.


The Toronto Linux Users Group.      Meetings:
TLUG requests: Linux topics, No HTML, wrap text below 80 columns

More information about the Legacy mailing list