Lazarus x64 also suitable to create 32 bit apps? lazarus / 13-General ---------------------------------------------------------------------- dietmar · 2021-08-11 20:27 Hi, maybe a stupid question, but I found this nowhere answered. Is it better to install always the 64 bit version of lazarus? Am I able to create also 32 bit applications with it? Thx --Dietmar ---------------------------------------------------------------------- lucamar · 2021-08-11 20:56 Yes ... with some caveats, depending on your OS. In Windows it's extremely easy: just install Lazarus 64 bits and then the 32 bit add-on and you're done. With Mac OS and Linux it's a little more involved since it implies installing multiarch binutils/Xcode, multiarch/32 bit libraries, etc. It can be done but it's not as easy as in Windows. ---------------------------------------------------------------------- avra · 2021-08-11 22:24 Quote from: dietmar on August 11, 2021, 10:27:12 pmIs it better to install always the 64 bit version of lazarus? Am I able to create also 32 bit applications with it?There used to be an issue when cross compiling code which uses 80-bit extended floating point type. Fixed in FPC 3.2 fixes, so just use newer FPC then that. https://forum.lazarus.freepascal.org/index.php/topic,44168.0.html ---------------------------------------------------------------------- wp · 2021-08-11 22:39 Quote from: dietmar on August 11, 2021, 10:27:12 pmIs it better to install always the 64 bit version of lazarus? Am I able to create also 32 bit applications with it? I installed both versions (cross-compilation is too complicated because I always forget to switch the options) - diskspace is cheap. ---------------------------------------------------------------------- lucamar · 2021-08-12 00:11 Quote from: wp on August 12, 2021, 12:39:01 amcross-compilation is too complicated because I always forget to switch the options That's one thing for which modes work quite well ... and I guess you don't forget to change from Debug to Release  mode, do you? Though yes, there should be an easier way to change the mode, other than entering on project options, etc. or the ridiculously small button on the IDE coolbar. ---------------------------------------------------------------------- dbannon · 2021-08-12 00:40 Yes indeed, modes make targeting various other platforms dead easy. I have my build system setup to target 32 and 64 bit Linux and Windows and Rasberry Pi. I also have a Mac mode but don't build Mac with cross compiler. Cross compiling - https://wiki.freepascal.org/Cross_compiling Davo ---------------------------------------------------------------------- Martin_fr · 2021-08-12 09:21 Quote from: lucamar on August 12, 2021, 02:11:31 amThough yes, there should be an easier way to change the mode, other than entering on project options, etc. or the ridiculously small button on the IDE coolbar. 1) Install project groups, add your project to a group, and you can access modes from there too. 2) Write an add-on to your taste