0

我正在尝试配置 NppExec,以便我可以直接从 Notepad++ 运行 C 代码。我按照此链接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 更改执行窗口中的第二行(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 回答