HOWTO : Compile x86 software on x86_64 Ubuntu
Step 1 :
Make sure you are using x86_64 Ubuntu system.
Step 2 :
Suppose you are using x86_64 system and want to compile a x86 version software.
That's all! See you.
Make sure you are using x86_64 Ubuntu system.
sudo apt-get install build-essential gcc-multilibStep 2 :
Suppose you are using x86_64 system and want to compile a x86 version software.
gcc -m32 test.c -o testfile testThat's all! See you.