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

请指教,谢谢!!

相关内容