I have a project that I'm compiling with GCC 7.3 c++ 17, my project link to 3rd party lib that builds with GCC 7.3 but with c++11. when I'm trying to link the lib I'm getting undefined reference to ec_core::ECPassword::getPlainText[abi:cxx11]()
I tried using this question but with no luck. I'm using CMake. If I'm adding to the CMake file
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
and in the code I'm doing this:
#define _GLIBCXX_USE_CXX11_ABI 0
ec_framework::ConfigRP _ecconfig = m_ecapp->load(path, fileName, "ver_num");
#undef _GLIBCXX_USE_CXX11_ABI
Im gtting the same error and if I'm doing the opesit AS
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
I'm getting a lot of undefined references on other functions. and also if I'm surrounding them with
#define _GLIBCXX_USE_CXX11_ABI 1
function_name;
#undef _GLIBCXX_USE_CXX11_ABI
it's not helping. is there a way to link them together?
Aucun commentaire:
Enregistrer un commentaire