[Lazarus] Using Laz 32bits to compile 64bits

Marcos Douglas md at delfire.net
Sat Aug 20 20:21:02 CEST 2011


On Fri, Aug 19, 2011 at 4:58 PM, Vincent Snijders
<vincent.snijders at gmail.com> wrote:
> 2011/8/19 Marcos Douglas <md at delfire.net>:
>> Hi,
>> My env is WinXP (3 bits, of course), FPC 2.5.1 (/branches_2_6) and
>> Lazarus 0.9.31.
>> I have FPC and Lazarus working on my notebook and I have a HD external
>> too (in any PC I can use the FPC/Lazarus, just using --pcp to start
>> it).
>>
>> Now I have to compile a console program (this is the first) to use in
>> a Win7 64bits dual core.
>>
>> My questions are:
>> 1. I can use Lazarus 32bits in a machine 64bits but compile a program to 64bits?
> Yes, that is possible. Even on a 32 bits machine you can compile a
> program to 64 bits. It is called cross compiling.

I don't want to use cross compile. I want use a same code of FPC to
compile in each OS.

>> 2. The make, to compile FPC, knows about if the machine is 64bits or I
>> have to type a parameter?
> Set the target processor and the target OS in Lazarus.
>
> For more details on compiling the fpc units for win64, see the buildfaq.
> www.stack.nl/~marcov/buildfaq.pdf

I will see.

Marcos Douglas




More information about the Lazarus mailing list