The program that I am working on is statically linked to a 3rdPartyLibrary.lib.
We wanted to take advantage of a newer version of the same 3rdPartyLibrary, say 3rdPartyLibraryNewVersion.lib.
So the decision is to include the 3rdPartyLibraryNewVersion.so as a dynamically linked library, to be included via a wrapper dynamic library called wrapper.so. We are hoping to use both the new version and old version of the 3rdPartyLibrary at the same time, but in different party of the program.
The solution we have is to statically link the old 3rdPartyLibrary and dynamically linked to a wrapper library to the 3rdPartyLibraryNewVersion at the same time.
program --- statically linked ---> 3rdPartyLibrary.lib. --- dynamically linked --> wrapper.so --- dynamically linked ---> 3rdPartyLibraryNewVersion.so.
Is this possible?
The problem that we encountered is that while the wrapper.so worked with a test executable, it failed inside the 3rdPartyLibraryNewVersion.so when the wrapper is invoked from the program which is statically linked to the 3rdPartyLibrary.lib.
Did I do anything wrong?
I know the correct way is to update our code to 3rdPartyLibrary.lib but it is too tedious...
Thanks,
Tim