On Wed, 29 Aug 2018 at 11:06, Igor Chudov <Igor_Chudov@xxxxxxxx> wrote: > > Hello colleagues! > > I'm trying to build solib written in C++ on CentOS with different ABI versions and with different compilers (GCC 4.4, GCC 4.8, GCC 5.2, GCC 6.3 and GCC 7.3). On more recent compiler versions (GCC 5.2 and higher) we're using flag -D_GLIBCXX_USE_CXX11_ABI=0 and -D_GLIBCXX_USE_CXX11_ABI=1 . > > AFAIK there is a flag -fabi-version which allows to switch between ABI versions too but as far as I understood the documentation, it switches not C++98/C++11 ABI but another kind of things. It's completely unrelated. > I'm striving to eliminate the need to build the solib using different versions of compilers and to correctly specify the needed version of ABI. > > Could someone possibly help me with determining the ABI versions used by the specified versions of GCC so I will be able to remove the unneeded compilers? https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html should be clear.