0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS7でC++11が使えない原因

Posted at

CentOSではSoftware Collectionからdevtoolset-10をインストールすればg++10がインストールできる。
しかしながら実際はC++11の機能はほとんど使えない。これは--with-default-libstdcxx-abi=gcc4-compatibleでコンパイルされており、古いlibstdc++を使うようになっているため。
_GLIBCXX_USE_CXX11_ABIをコンパイル時に定義しても無駄。

参考:
https://stackoverflow.com/questions/47951367/d-glibcxx-use-cxx11-abi-1-ineffective-for-devtoolset-7-on-centos-7/50459937#50459937
https://bugzilla.redhat.com/show_bug.cgi?id=1546704

使いたければ自分でgccをビルドするしか無い。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?