'Will the `so` compiled with different versions of `gcc` under the same executable file conflict?

I have a c++ executable file which is compiled under gcc5.4 I should add add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) because some so are compiled under gcc4.8. It works correctly.

Now I will add a so file, which should be compiled under gcc7.5, my question is whether it is possible to add a so compiled under new gcc version to an executable file which is build under add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source