gcc g++ - 設定: エラー: *** C++11 言語機能をサポートするコンパイラが必要です。

gcc g++ - 設定: エラー: *** C++11 言語機能をサポートするコンパイラが必要です。

gcc 8.3.0を使用してcygwinでlibsigc ++-2.10.2をコンパイルしてビルドしようとしています。

$ gcc --version
gcc (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ g++ --version
g++ (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

./configure を実行すると、次のようになります。

checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with +std=c++11... no
checking whether g++ supports C++11 features with -h std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
checking whether g++ supports C++11 features with +std=c++0x... no
checking whether g++ supports C++11 features with -h std=c++0x... no
configure: error: *** A compiler with support for C++11 language features is required.

autogen.shを実行しようとすると、次のようになります。

configure.ac:28: installing 'build/missing'
Makefile.am:20: error: ENABLE_DOCUMENTATION does not appear in AM_CONDITIONAL
build/doc-reference.am:64: error: DIST_DOCTOOLS does not appear in AM_CONDITIONAL
docs/Makefile.am:32:   'build/doc-reference.am' included from here
build/doc-reference.am:70: error: ENABLE_DOCUMENTATION does not appear in AM_CONDITIONAL
docs/Makefile.am:32:   'build/doc-reference.am' included from here
examples/Makefile.am: installing 'build/depcomp'
autoreconf-2.69: automake failed with exit status: 1

アドバイスしてください、ありがとう! !

ベストアンサー1

おすすめ記事