Failure when trying to compile Pascal programs via Notepad++
01:27 12 Sep 2015

I’m trying to compile Pascal files with Notepad++ with the Free Pascal Compiler. I’ve been instructed to use the following script:

NPP_SAVE
cd $(CURRENT_DIRECTORY)
C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe $(NAME_PART).pas

But when I try to run the program, the Notepad++ console gives me the following message:

NPP_SAVE: C:\FPC\2.6.4\bin\i386-win32\new 1.pas CD: C:\FPC\2.6.4\bin\i386-win32 Current directory: C:\FPC\2.6.4\bin\i386-win32 C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe new 1.pas Process started >>> Fatal: Can't open file "1.pas" Fatal: Compilation aborted <<< Process finished. (Exit code 1) ================ READY ================

I’ve tried to use also:

C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe "$(FULL_CURRENT_PATH)"

But it gives me:

C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe "C:\FPC\2.6.4\bin\i386-win32\new 1.pas"
Process started >>>
<<< Process finished. (Exit code 0)
================ READY ================

Even if I have readln(); at the end of the program.

compiler-errors notepad++ freepascal