2013-09-21 48 views
0

我安裝了MinGW,我正在使用netbeans。然而,當我嘗試運行一個簡單的「Hello world」 PROGRAMM它給了我下面的錯誤:使用MinGW和netbeans運行錯誤7.3.1

"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-  conf 
make.exe[1]: Entering directory `/c/Users/Notandi/Documents/NetBeansProjects/somegame' 
"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_1- Windows/somegame.exe 
make.exe[2]: Entering directory `/c/Users/Notandi/Documents/NetBeansProjects/somegame' 
mkdir -p dist/Debug/MinGW_1-Windows 
g++  -o dist/Debug/MinGW_1-Windows/somegame build/Debug/MinGW_1-Windows/main.o - lmingw32 -lSDL2main -lSDL2.dll 
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot open output file dist/Debug/MinGW_1-Windows/somegame.exe: Permission denied 
collect2.exe: error: ld returned 1 exit status 
make.exe[2]: *** [dist/Debug/MinGW_1-Windows/somegame.exe] Error 1 
make.exe[2]: Leaving directory `/c/Users/Notandi/Documents/NetBeansProjects/somegame' 
make.exe[1]: *** [.build-conf] Error 2 
make.exe[1]: Leaving directory `/c/Users/Notandi/Documents/NetBeansProjects/somegame' 
make.exe": *** [.build-impl] Error 2 


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

如果程序在後臺運行,我已經檢查了,但事實並非如此。 即時通訊使用Windows 64位和使用MinGW的C + +。

回答

0

我只是配置的NetBeans使用MinGW和麪臨着同樣的麻煩,但很快就乾脆 決定使用NetBeans以「以管理員身份運行」,這有助於(等甚至提出「以管理員身份運行」,在進一步運行不必要的)。在下個星期我可以用另一種方式重新安裝MinGW + MSYS。我提到:

The NetBeans IDE might have issues when you try to build and run projects later if MSYS is installed under a limited user account