I am trying to build a shared library in Solaris using Forte C++. I need to be able to link the objects to a static third party library.
ex.
CC -G -o mylib.so -Kpic myfile.o -lsocket -lthread -lpthread -lcurses -lthirdpartystaticlib
If I use the above compiler command, it successfully builds the library. However, I get a library not found exception at runtime. If I do not include the thirdparty library, the shared library successfully builds but I get unresolved external errors at runtime (which I would expect).
I also attempted to remove all of the object files from the third party library and link directly with them rather than linking to their library. This did not work either. Anyone have any ideas?
thanks
Chris
ex.
CC -G -o mylib.so -Kpic myfile.o -lsocket -lthread -lpthread -lcurses -lthirdpartystaticlib
If I use the above compiler command, it successfully builds the library. However, I get a library not found exception at runtime. If I do not include the thirdparty library, the shared library successfully builds but I get unresolved external errors at runtime (which I would expect).
I also attempted to remove all of the object files from the third party library and link directly with them rather than linking to their library. This did not work either. Anyone have any ideas?
thanks
Chris