0

Notepad++ から直接 C コードを実行できるように、NppExec を構成しようとしています。このリンクhttp://windowsbro.blogspot.in/2012/10/compile-with-notepad-any-language.htmlに従って NppExec を構成しましたが、次のエラーが発生しました

NPP_SAVE: D:\Code\hello24.c
gcc "D:\Code\hello24.c"
Process started >>>
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file a.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
<<< Process finished. (Exit code 1)
cmd /c "D:\Code\a.exe"
Process started >>>
'D:\Code\a.exe' is not recognized as an internal or external command,
operable program or batch file.
<<< Process finished. (Exit code 1)

C:\MinGW\bin\gcc.exeで実行ウィンドウの 2 行目 ( gcc "$(FULL_CURRENT_PATH)" ) も変更しようとしましたが、次のエラーが発生しました。

NPP_SAVE: D:\Code\hello24.c
C:\MinGW\bin\gcc.exe
Process started >>>
gcc.exe: fatal error: no input files
compilation terminated.
<<< Process finished. (Exit code 1)
cmd /c "D:\Code\a.exe"
Process started >>>
'D:\Code\a.exe' is not recognized as an internal or external command,
operable program or batch file.
<<< Process finished. (Exit code 1)

助言がありますか?私はこれに慣れていないので、詳細を見逃している場合は親切にお知らせください。

ありがとう

4

1 に答える 1

0

出力ファイル a.exe を開けません: 権限が拒否されました

これは、notepad++ の問題ではなく、インストールの問題のようです。次のコマンドを実行してみてください。

gcc "D:\Code\hello24.c"

コマンドラインからアクセス許可の問題をデバッグします。d:\Code\ に書き込めますか?

于 2015-01-24T19:27:02.427 に答える