I am trying to build a shared library in C++ which incorporates a
third party library which is only available for static linking. I am
experiencing the same problem on both Solaris 2.7 and Linux (RH 7.0),
although a windows version works fine.
I am getting an unresolved symbol error when I try and load the shared
library and the symbol it is looking for is in the static library that
was linked with my code. I believe this is related to the way the
WSpro 5 compiler and gcc 2.96 compiler work with static libraries
linked in dynamic libraries. I have been told that the compiler does
not actually link the static elements in but expects any client apps
to link in the static libraries as well. My problem here is that the
client is a java app using JNI so I cannot link in the static
libraries.
Is my understanding correct and is there any way to force either
compiler to include the static components ? I have approached the 3rd
party vendor and they are quoting in excess of 6 months to get a
dynamic version of their library available, I have to complete this by
Christmas so this is not an option.
Thanks
Simon