Archive to Shared library - 2nd try.
2007-12-24 20:23:00
I've got a precompiled app that is choking on not finding a
shared lib, eg. libwhatever.so.2.0. I do have, on my system,
the archive file libwhatever.a.2.0. For the life of me I
can't remember how create the shared lib from the archive file.
Yes - I've checked my LD_LIBRARY_PATH.
Yes - I've tried making a sym link from the archive to the .so that the
exe is requesting.
I've also tried extracting the object files from the archive (ar -x) and
re-linking:
/usr/ccs/bin/ld -G -S libwhatever.a *.o -o libwhatever.so
If I check my output I see:
ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not
stripped
My app now sees the lib but I'm getting symbol errors.
Ideas? am I missing something in my linker commandline?
--
Doug Otto
Sr. Systems Engineer 916.631.8007
NPA West doug.otto at npawest.com
Comments
Got something to say?
You must be logged in to post a comment.

