c++11 - Cxx11 ABI for a single function call? -
is possible define piece of code compiled cxx11 rest using compatibility abi of libstdc++6 ?
example:
// compatibility abi int myvar = 0; std::string mystring = "hello"; // method library // has been compiled cxx11 call_routine_ext_library(mystring); // compatibility abi myvar += 2;
my whole system compiled in compatibility mode except 1 external library compiled cxx11. there exist preprocessor allows handpick part of code compiled using new abi have defined d_glibcxx_use_cxx11_abi=1 on compiler line ?
the error when calling method call_routine_ext_library is:
undefined reference `call_routine_ext_library(std::string const&)'
because library contains this:
call_routine_ext_library(std::__cxx11::basic_string<char, std::char_traits<char>)
so hoping force compiler use cxx11 mode when compiling string pass method. there means of linking against binary compiled cxx11 when code compiled without ?
Comments
Post a Comment