V
V
vlad131232132017-09-28 11:43:48
Pascal
vlad13123213, 2017-09-28 11:43:48

How to solve the problem with compiling Pascal code in Notepad++?

Wrote this program:

Program SUMMA;
Var
term1, term2: Real;
Sum: Real;
Begin
Writeln('');
Writeln();
Write('5');
Readln(term1);
Write('9');
Readln(term2);
Sum:=term1+term2;
Writeln();
Writeln(term1,'+',term2m,'=',Sum);
End

And when I press F6 where entered
NPP_SAVE
cd $(CURRENT_DIRECTORY)
fpc ''$(FILE_NAME)''

Gives out:
NPP_SAVE: D:\Programirovanie\1..pas
CD: D:\Programirovanie
Current directory: D:\Programirovanie
fpc ''1..pas''
Process started >>>
Free Pascal Compiler version 3.0.2 [2017/02/13] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling ''1..pas''
Fatal: Cannot open file "''1..pas''"
Fatal: Compilation aborted
Error: C:\FPC\3.0.2\bin\i386-Win32\ppc386.exe returned an error exitcode
<<< Process finished. (Exit code 1)
================ READY ================

And I don't know what to do

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question