Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-02

Newbie question#1

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matthew Fero

Hi,

When I try to compile my program with:
fpc myfile.p

This produces no errors and myfile.o appears in my home directory. However, there is no executable file (a.out). Am I doing something wrong?

MF

Reply by email

Jonas Maebe
to Matthew Fero
Matthew Fero wrote 6 lines
When I try to compile my program with: fpc myfile.p This produces no errors and myfile.o appears in my home directory. However, there is no executable file (a.out). Am I doing something wrong?

Unless myfile is a unit, there should also be a file simply called "myfile" (without extension) after compilation, which is the executable.

Jonas

Reply by email

Marco van de Voort
to Matthew Fero: When I try to compile my program with: fpc myfile.p This produces no errors and myfile.o…
Show quoted text 6 lines
When I try to compile my program with: fpc myfile.p This produces no errors and myfile.o appears in my home directory. However, there is no executable file (a.out). Am I doing something wrong?

a.out is an ancient unix fileformat, that is still abused as default name in gcc. (even though gcc generates ELF since at least 1996)

What other files are generated

- If it is a main program, "myfile" should have been created in addition. Run it.
- if it is a unit (library) "myfile.ppu" should have been generated.

Reply by email