Пользуюсь средой NetBeans, устанавливал компилятор MinGW по инструкции создателей этой IDE. В чём ошибка?
Что вывел NetBeans:
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/Users/1/Documents/NetBeansProjects/CppApplication_'
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/cppapplication_.exe
make.exe[2]: Entering directory `/c/Users/1/Documents/NetBeansProjects/CppApplication_'
mkdir -p build/Debug/MinGW-Windows
rm -f "build/Debug/MinGW-Windows/main.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/MinGW-Windows/main.o.d" -o build/Debug/MinGW-Windows/main.o main.cpp
/bin/sh.exe: g++: command not found
make.exe[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
make.exe[2]: Leaving directory `/c/Users/1/Documents/NetBeansProjects/CppApplication_'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/Users/1/Documents/NetBeansProjects/CppApplication_'
make.exe": *** [.build-impl] Error 2
Исходный код:
#include <iostream>
using namespace std;
int main() {
cout << "test\n";
return 0;
}