I am pretty new to C++ and am using gcc 7.5.0 compiler. I want to use the following Parallel Max Clique (PMC) library in my code. So I downloaded the whole and repo and added the folder to my current working directory (where my main.cpp i.e. the program in which I want to include the pmc library, is). After building the file I got the following error :
"undefined reference to `pmc::pmc_graph::pmc_graph(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'|"
Now, I know why this is happening, this is happening because the PMC Library was written in an old compiler, and hence I am probably trying to link together object files that were compiled with different values for the _GLIBCXX_USE_CXX11_ABI macro. check link. The solution is to ensure that my underlying libraries (i.e. PMC library) and my current cpp code(i.e. main.cpp) are compiled with either ABI off. Google search says that I have to build the whole code with -D_GLIBCXX_USE_CXX11_ABI=0. How shall I do it?? I am very confused. Is there any tutorial as to how shall I do it. I am currently using VScode/CodeBlocks.
Thanks a lot in Advance.