How to switch between Win32/64 code generation in Lazarus?

kludg picture kludg · Dec 14, 2012 · Viewed 8.6k times · Source

I installed 64-bit Lazarus and want to generate 32-bit code. When I try to set Target OS to Win32 I get error message

Compiler "C:\Programs\lazarus\fpc\2.6.0\bin\x86_64-win64\fpc.exe" does not support target x86_64-win32

so I guess I need to download and install additional fpc compiler to generate Win32 code and somehow to switch between them in Lazarus IDE.

What is the right way to do it?

Answer

user1188260 picture user1188260 · Dec 14, 2012

You need the cross-compiler or simply compile in a 64bit IDE (pragmatic approach).

CodeTyphon works.