Using stlport and Cstd in same application
Hello,
I have two 3rd party C++ libraries. One of them is using stlport, second classic Cstd library. Is it possible to make application which will use both of them at the same time?
I know that easy answer is 'no'. I have contacted both vendors - stlport-based one says "We won't support old crappy libraries", Cstd-based one says "Cstd is default library on Sun Studio, we don't want to support two versions of library on one platform". Is there any way to link the application with both libraries? Main benefit is that none of these two libraries actually expose std:: in their interfaces - they just need the implementation internally.
I have no issues with linking statically with their libraries - maybe some kind of prebinding would be possible? Something like taking one library, linking it statically with Cstd, nuking all export symbols from std::, and then linking the resulting static library with rest of the program? I'm bit scared about static initializers - after all, both libraries would like to have their own cout working...
Failing that, we will probably have to use two processes with some kind of IPC between them - but at this point it can be probably done with java a lot easier (C++ was chosen because we need every single bit of speed and no gc pauses).

