0

MinGW をインストールし、netbeans で使用しています。ただし、単純な「Hello world」プログラムを実行しようとすると、次のエラーが表示されます。

"/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ビットを使用し、C ++にMinGWを使用しています。

4

1 に答える 1

0

MinGW を使用するように NetBeans を構成しただけで、同じ不都合に直面しましたが、すぐに「管理者として実行」で NetBeans を使用することにしました。そして来週には、別の方法で MinGW + MSYS を再インストールできます。私は引用しています:

MSYS が制限されたユーザー アカウントでインストールされている場合、後でプロジェクトをビルドして実行しようとすると、NetBeans IDE で問題が発生する可能性があります

于 2014-09-09T11:17:40.223 に答える