I'm currently starting using icc instead of the gcc.
On my Debian 8 is a gcc-4.7 as system compiler installed.
Additionally I added gcc-5.2.0 from soruce, which works pretty nice.
I need to know, if icc compiles the source file using the new ABI for std::string.
I have a libA, which compiles.
I have a libB, which depends an libA and compiles too.
If I compile the main() part, which links against the libA. I got an error:
undefined reference to `class::text[abi:cxx11]()'
I cannot set _GLIBCXX_USE_CXX11_ABI 0 , I need the cxx11 std::string handling.
Which version of Intel C++ Compiler are you using? If you are using ICC 16.0.3 in GCC 5.1 compatibility mode or above, macro _GLIBCXX_USE_CXX11_ABI set to 1. Are you building libA, libB and final executable using the same ICC compiler (same compatibility mode) or is there a mixing and matching here?
Thanks and Regards