Page 1 of 1

Possibility to compile for x86 under x64 Linux

Posted: Fri Mar 13, 2015 8:09 pm
by Inf0Byt3
Hi,

I tried following one of the blog posts in order to compile an x86 program on a Debian Wheezy 7.8 x64 box with PureBasic 5.31 x86, but ran into some problems. The IDE launches fine, however at compilation I get many errors looking like this:
/urs/bin/ld: i386 architecture of input file 'purebasic.o' is incompatible with i386:x86-64 output
Installing the x86 version under a VM would be ok, however it would affect the speed of the compiled program (especially for CPU intensive tasks) and some program benchmarks would be way off. I see that Fred was considering adding a platform type to make ld use i386.

Could you please add this feature in one of the next versions of PureBasic? It would greatly simplify development and make things less bloated. Thanks.