equeim
equeim

Reputation: 117

Configuring GCC for GCC 4 compatibility

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.

Upvotes: 5

Views: 2556

Answers (2)

ractiv
ractiv

Reputation: 752

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

Upvotes: 1

Goswin von Brederlow
Goswin von Brederlow

Reputation: 12332

Don't. Too many problems.

Better to install or build a gcc-4.8.

Upvotes: 0

Related Questions