Possibility to compile for x86 under x64 Linux

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Possibility to compile for x86 under x64 Linux

Post 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.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)