Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring GCC for GCC 4 compatibility

Tags:

c++

gcc

I need to use newer version of GCC (7.3.1) to link against libraries that were compiled by GCC 4.8. For libstdc++ ABI I just need to set _GLIBCXX_USE_CXX11_ABI=0 macro, but what about language ABI (-fabi-version)? Do I need to set -fabi-version to the same version that old compiler uses, or -fabi-compat-version? Thanks.

like image 427
equeim Avatar asked Nov 07 '22 04:11

equeim


1 Answers

It's tricky to play with various gcc, as @Goswin von Brederlow said. You should use gcc 4.8 with -std=c++1y in order to use C++14 as suggested here

like image 162
ractiv Avatar answered Nov 14 '22 22:11

ractiv