I was wondering if someone could tell me how(if possible) this can be done.
I am writing a shared library that an executable will load int at runtime. The
shared library I wrote needs to use symbols and functions from another shared
library that was not part of the link line of the executable. Is there a way for
a shared library to tell the executable that it needs other library loaded that the
executable didn't link in.
Is there a command line option to ld when creating a shareed library to use
other libraries?
Is there a link option for the executable to shared libraries to link in other
shared libraries not in the link line?
Illustration
----------
Executable:
CC -o myProgram *.o -lmyLib
My shared library:
ld -G -b -o libmyLib.so
** myLib needs another library libotherLib.so
PS. I am using SUNWspro CC4.1 compiler.
Thanks for any help,
Greg.
--
Gregory Gee
Nortel ISPN
Phone: (613)763-6175 ESN 393