0

Netbeans 7.3 で C++11 をセットアップしようとしていますが、壁にぶつかったようです。私が得ているエラーはタイトルと同じです:

cc1plus.exe: error: unrecognized command line option '-std=c++11'

G++ 4.7.1 (C++11 をサポートする必要があります) をインストールし、このスレッドの指示に従いました:

Netbeans が cbegin() 、 cend() 、 unordered_set などの C++ 機能を認識しないのはなぜですか?

コンソールダンプは次のとおりです。

"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make.exe[1]: Entering directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'
rm -f -r build/Debug
rm -f dist/Debug/MinGW_11-Windows/heap.exe
make.exe[1]: Leaving directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'


CLEAN SUCCESSFUL (total time: 654ms)

"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'
"/C/MinGW/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_11-Windows/heap.exe
make.exe[2]: Entering directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'
mkdir -p build/Debug/MinGW_11-Windows
rm -f build/Debug/MinGW_11-Windows/main.o.d
g++    -c -g -std=c++11 -MMD -MP -MF build/Debug/MinGW_11-Windows/main.o.d -o build/Debug/MinGW_11-Windows/main.o main.cpp
cc1plus.exe: error: unrecognized command line option '-std=c++11'
make.exe[2]: *** [build/Debug/MinGW_11-Windows/main.o] Error 1
make.exe[2]: Leaving directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/Users/Nikola/Documents/NetBeansProjects/heap'
make.exe": *** [.build-impl] Error 2


BUILD FAILED (exit value 2, total time: 1s)

ちなみに、WindowsでNetbeansを実行しています。

4

1 に答える 1