[fpc-pascal]Cross compiling Linux -> Windows - how?

Sergey Korshunoff seyko at comail.ru
Fri Aug 2 06:08:10 CEST 2002

.> On Thu, 25 Jul 2002, Rainer Hantsch wrote:
> > Because I use 100% Linux, I would either have to install windoze
> > somewhere, or, if possible, do the whole thing on FPC for Linux and do
> > a compilation for a windoze-exe.
> >
> > - Is this possible at all?
> Yes.
> > - What must I install in addition to my FPC 1.0.4 for Linux on my Linux
> >   machine to have the possibility for cross-compilation?
> You have to download the gnu binutils and configure/compile them for
> cross-compilation from linux to win32. Then you can tell, when compiling,
> the compiler using the -FD option in which directoey these utilities can
> be found.
.> Jonas

I done this procedure at last month.  I put utilities in /usr/local/bin,
with names asw (this is as), ldw (this is ld), dlltool.
And then
	fpc -Twin32 qsort.pp
produce a qsort.exe.

Command to configure binutils is

  ./configure --target=i386-pc-winnt

	Sergey Korshunoff

More information about the fpc-pascal mailing list