Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22035

Linking a program to libraries the use different _GLIBCXX_USE_CXX11_ABI each

$
0
0

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.


Viewing all articles
Browse latest Browse all 22035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>