I am trying to compile a program (using GCC 5.4.O) that depends on two libraries. Library A was compiled using the old ABI, while library B was compiled using the new C++11 ABI (see Dual ABI).
If compile the program setting _GLIBCXX_USE_CXX11_ABI 1, I have linking errors with library A. If I set it to 0, I have linking errors with library B.
Would it be possible to instruct the compiler to compile the calls to one library using one value of _GLIBCXX_USE_CXX11_ABI and the calls to the other library using another value of _GLIBCXX_USE_CXX11_ABI?
If I understood correctly, this is possible when compiling a new library that depends on two others but I don't know if the same is true for a program.
Aucun commentaire:
Enregistrer un commentaire