I am trying to link same application two different versions of the same library. Lets call the library libOld and libNew. libNew has a new method (lets call it newMethod()) which libOld does not.
When my application tries to call the newMethod() which is not in libOld the linker obviously fails. Is it possible to get around this problem somehow so that I can link to newMethod() only if it is available? That is, if the application is linked with libNew and not libOld.
The library I'm trying to link with is built in c++ and I cannot delay or dynamically load it since it contains exported static data objects and it does not contain any extern "C" factory classes for constructing c++ objects which could help out with memory management.
Toolchain Update
The application is build in Windows for Windows CE 5.0 running on an ARM processor (if that matters). The library I am trying to use is closed source. The application uses the qt framework.