Hi there.
I tried to compile a sample program that displays "Hello world!" in FPC 2.0.2.
Changed the Target to Linux-i386, and installed Linux units into FPC folder, in units/i386-linux
The program compiled without errors, however I tried to run it in Linux, and I got "Permission denied" error. Then I changed file permissions with chmod, but still doesnt worked.


After comparing the binary files of the programs, I noticed Linux native programs have ELF in their header, while the one I compiled got MZ, wich is the same as programs compiled to windows. Am I doing something wrong?
Is there anyway to compile Linux programs under Windows using FPC?