开发者

Compiling pascal programs with FPC and then running them, all in Notepad++

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 c开发者_如何学运维ombining 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.


Try to append -o with your output executable file. Which will be like this: -o"$(CURRENT_DIRECTORY)\$(NAME_PART).exe"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜