用FPC编译pascal程序然后运行它们,全部在记事本中++
这是我的问题,
我已经搜索了一段时间如何在记事本中编译 pascal 程序,然后在成功编译后立即运行它。
到目前为止,我已经设法找到 NppExec 的编译脚本,如下所示:
PATH_TO_FPC\ppc386.exe "$(FULL_CURRENT_PATH)"
我尝试将此脚本与另一个脚本结合起来,以便在记事本++中编译和运行 C/C++ 程序
cmd /K DPATH-TO-FPC\ppc386.exe “$(FULL_CURRENT_PATH)”-o “$(CURRENT_DIRECTORY)\$(NAME_PART).exe”
但当我尝试运行它时,我总是收到一条消息。
“错误:非法参数:-o”
所以我想知道是否有人可以帮助我解决这个问题,或者如果他们了解某个主题,则可以发布完整的解决方案。
先感谢您。
Here's my problem
I've been searching for a while now on how to compile a pascal program in notepad, then immediately running it after a successful compile.
So far, I've managed just to find a compile script for NppExec, which goes like this :
PATH_TO_FPC\ppc386.exe "$(FULL_CURRENT_PATH)"
I've tried combining this script with another script for compiling and running C/C++ programs in notepad++
cmd /K DPATH-TO-FPC\ppc386.exe
"$(FULL_CURRENT_PATH)" -o
"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
but I always get a message, when I try to run it.
"Error: Illegal parameter: -o"
So I was wondering if anyone can help me with this, or post a complete solution if they know on a topic.
Thank You in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 -o 附加到您的输出可执行文件。会是这样的:
-o“$(CURRENT_DIRECTORY)\$(NAME_PART).exe”
Try to append -o with your output executable file. Which will be like this:
-o"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"