gpt4 book ai didi

在 Notepad++ 中配置 NppExec 以进行 C 编程

转载 作者:行者123 更新时间:2023-11-30 17:22:05 28 4
gpt4 key购买 nike

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

有什么建议吗?我对此很陌生,如果我错过了任何细节,请告诉我。

谢谢

最佳答案

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

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

gcc "D:\Code\hello24.c"

从命令行调试权限问题。您可以写入 d:\Code\吗?

关于在 Notepad++ 中配置 NppExec 以进行 C 编程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28124220/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com