【发布时间】:2012-08-16 09:34:52
【问题描述】:
每次我尝试构建我的 c++ 文件时都会收到此错误
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Joey/Documents/NetBeansProjects/C++Train'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/c__train.exe
make[2]: Entering directory `/c/Users/Joey/Documents/NetBeansProjects/C++Train'
make[2]: mkdir: Command not found
mkdir -p build/Debug/MinGW-Windows
make[2]: Leaving directory `/c/Users/Joey/Documents/NetBeansProjects/C++Train'
make[1]: Leaving directory `/c/Users/Joey/Documents/NetBeansProjects/C++Train'
make[2]: *** [build/Debug/MinGW-Windows/HelloWorld.o] Error 127
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 2s)
我检查了 make.exe 所在的目录,mkdir 在那里,所以我很困惑。
我的代码本身没有显示错误:
#include <iostream>
int main() {
using namespace std;
cout << "Hello World!" << endl;
return 0;
}
只是一个简单的小 hello world 来测试 netbeans。
【问题讨论】: