【发布时间】:2015-05-21 07:53:49
【问题描述】:
我正在尝试使用 NetBean 来编写 C++,我已经按照每个 在这里找到的命令: https://netbeans.org/community/releases/68/cpp-setup-instructions.html#compilers_windows
但是,我在使用 netbeans 中的 make 命令选项时遇到了问题。我已将基本目录 o M:\c++\bin 设置为安装 MinGW 的位置,并且将 make 命令设置为 M:\MinSYS\bin\make.exe,但是在尝试构建简单程序时,netbeans 会产生以下错误:
"/M/c++/MinSYS/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/m/Documents/NetBeansProjects/CppApplication_1'
"/M/c++/MinSYS/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/cppapplication_1.exe
make.exe[2]: Entering directory `/m/Documents/NetBeansProjects/CppApplication_1'
mkdir -p build/Debug/MinGW-Windows
make.exe[2]: mkdir: Command not found
make.exe[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
make.exe[2]: Leaving directory `/m/Documents/NetBeansProjects/CppApplication_1'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/m/Documents/NetBeansProjects/CppApplication_1'
make.exe": *** [.build-impl] Error 2
我尝试将 make 命令更改为任何包含 make 的命令,但都没有得到任何帮助,我们将不胜感激。
【问题讨论】:
-
这个问题与你如何调用 make 本身没有任何关系;我认为错误消息很清楚:
mkdir: Command not found它找不到您的makefile 试图调用的mkdir命令。这听起来像是环境或配置问题。
标签: c++ netbeans makefile mingw