PDA

View Full Version : Crosscompiler for Pascal



Kimm
May 19th, 2005, 09:21 PM
does anyone know of a crosscompiler (for Linux to make Windows Binaries) for Pascal? I need it for my Delphi class, I was trying to emulate Delphi 3 in wine but it will not work and Kylix does not have the libraries I need.

I need help fairly fast so if anyone can help I would realy apretiate it!!!!

poster_nutbag
May 19th, 2005, 10:46 PM
Have you looked at Free Pascal (http://www.freepascal.org/) at all?

Kimm
May 21st, 2005, 11:19 PM
I hadnt, but I didnt know it was a crosscompiler...
I'm having some trubble with it though, I need to use win32 libraries so ofcourse I need to compile to a win32 binary, but it doesnt seem to work, this is the error message I get when running "fpc -Twin32 test.pas" (and "fpc test.pas -Twin32"):



Fatal: Can't find unit System
Error: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you didnt specify a source file to be compiled)


Can anyone help? btw, this would be how the source file looks:



program test;

begin
writeln('Hello win32 World...');
end.


and it compiles nicely without the "-Twin32" argument