首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在NppExec中为C程序配置Notepad++

在NppExec中为C程序配置Notepad++
EN

Stack Overflow用户
提问于 2015-01-24 09:49:42
回答 1查看 1.3K关注 0票数 0

我正在尝试配置NppExec,以便我可以直接从Notepad++运行C代码。我遵循这个链接http://windowsbro.blogspot.in/2012/10/compile-with-notepad-any-language.html来配置NppExec,但是它导致了下面的错误

代码语言:javascript
复制
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)"),但随后导致以下错误:

代码语言:javascript
复制
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)

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

谢谢

EN

回答 1

Stack Overflow用户

发布于 2015-01-24 19:27:02

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

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

代码语言:javascript
复制
gcc "D:\Code\hello24.c"

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28124220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档