Netbeans首次编译器构建错误

Netbeans First Time Compiler Build Error

本文关键字:构建 错误 编译器 Netbeans      更新时间:2023-10-16

我最近决定尝试NetBeans,在下载和链接MinGW时,在尝试编译"Hello World"程序时出现以下错误。

"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/Users/David/Documents/NetBeansProjects/Welcome_2'
"/C/MinGW/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_TDM-Windows/welcome_2.exe
make.exe[2]: Entering directory `/c/Users/David/Documents/NetBeansProjects/Welcome_2'
mkdir -p build/Debug/MinGW_TDM-Windows
make.exe[2]: mkdir: Command not found
make.exe[2]: *** [build/Debug/MinGW_TDM-Windows/welcome.o] Error 127
make.exe[2]: Leaving directory `/c/Users/David/Documents/NetBeansProjects/Welcome_2'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/c/Users/David/Documents/NetBeansProjects/Welcome_2'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)

对于我在toolsoptionsc/c++Build tools下的选项基本目录:C:MinGW32bin

C编译器:C:MinGW32bingcc.exe

c++编译器:C:MinGW32bing++.exe

汇编:C: MinGW32 bin as.exe

Make命令:C:MinGWmsys1.0bin Make .exe

调试器命令:C:MinGW32bingdb.exe

有可能我只是链接了一些错误的东西,但如果重新安装一些东西会更容易,那么我也愿意这样做。

与本文相似,关闭并重新启动Netbeans可能会解决此问题(通过更新您的PATH)。

希望这很容易!