Mixing libstdc++.6 and libstdc++.5 in the same application
Magnus Sjögren
magnus.sjogren@comsol.se
Tue Feb 12 18:31:00 GMT 2008
I am developing an application in C++ with a GCC version that uses
libstdc++.6 and wants to link to a dynamic library which has a pure C
API, but internally uses C++ and depends on libstdc++.5.
Are there any problems doing this?
I am aware of that it is NOT possible to link to a library using
libstdc++.5 from an application using libstdc++.6 if the library API is
C++, so my question is if there are any problem when using a C API?
Note that C++ symbols are exported by the library, but I will not use
any of them. Does this introduce any problems?
I would appreciate some kind of official statement if it works or not
(if it is designed to work?), as some simple test is not sufficent (I do
not want to do all work based on some working tests and discover the
problems late in the process).
I have been searching for information on this subject on libstdc++ Home,
but have not found any. The answer to this question should probably be
added to the FAQ, as I am not the only one having this problem.
More information about the Libstdc++
mailing list