【问题标题】:Configure NppExec in Notepad++ for C programming在 Notepad++ 中配置 NppExec 进行 C 编程
【发布时间】:2015-01-24 09:49:42
【问题描述】:

我正在尝试配置 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)

有什么建议吗?我是新手,如果我错过了任何细节,请告诉我。

谢谢

【问题讨论】:

    标签: c gcc mingw notepad++ nppexec


    【解决方案1】:

    无法打开输出文件 a.exe:权限被拒绝

    这看起来不像 notepad++ 的问题,更像是您的安装问题。尝试执行命令:

    gcc "D:\Code\hello24.c"
    

    从命令行调试权限问题。你能写到 d:\Code\ 吗?

    【讨论】:

      猜你喜欢
      • 2019-10-25
      • 2021-03-28
      • 2012-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多