I want to use fpc.exe directly to convert pascal code to executable (* .exe) file. I do not know how to use it. When it comes to the fpc.exe file, it tells you to press enter then it disappears automatically. I need to create a project on visual basic to convert pascal code to executable (* .exe), and then run it with a button in my program. Thank you for reading and please help me.
Mailing lists / fpc-pascal / 2017-10
Help on using direct pascal compiler
3 messages · 3 people · –
- MMichael Van Canneyt 1
- Ssjc snc 1
- TTomas Hajny 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
sjc snc wrote 6 lines
You need to specify the file that fpc.exe needs to convert.
If you have a file called, for example, 'hello.pas' that looks like this:
program hello;
begin
Writeln('Hello, world!');
end.then the command
fpc hello.pas
will convert it to an executable.
If you don't give any options to fpc, it will display the help, and asks you to press enter, this is what you have observed.
Michael.
Michael Van Canneyt wroteOn Mon, 2 Oct 2017, sjc snc wrote:
Hello,
The original poster is not subscribed to the list (although he didn't mention it in his post, unfortunately), thus I added him to Cc: now.
Show quoted text 27 lines
I would add that information provided above is provided in file readme.txt included with FPC (not even mentioning the excellent user documentation ;-) ).
Tomas
