我正在尝试配置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)有什么建议吗?我是新手,如果我错过了任何细节,请告诉我。
谢谢
发布于 2015-01-24 19:27:02
无法打开输出文件a.exe:权限被拒绝
这看起来不像notepad++的问题,更像是安装的问题。尝试执行以下命令:
gcc "D:\Code\hello24.c"从命令行调试权限问题。你能写到d:\Code\吗?
https://stackoverflow.com/questions/28124220
复制相似问题