![gcc g++ - 配置:错误:*** 需要支持 C++11 语言功能的编译器](https://linux22.com/image/156383/gcc%20g%2B%2B%20-%20%E9%85%8D%E7%BD%AE%EF%BC%9A%E9%94%99%E8%AF%AF%EF%BC%9A***%20%E9%9C%80%E8%A6%81%E6%94%AF%E6%8C%81%20C%2B%2B11%20%E8%AF%AD%E8%A8%80%E5%8A%9F%E8%83%BD%E7%9A%84%E7%BC%96%E8%AF%91%E5%99%A8.png)
我正在尝试使用 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
请指教,谢谢!!