(Solution) How to compile a 32 bits application using a 64 bits linux system with gcc

Hi,

In order to be able to compile a 32 bits application if you are using 64 bits Linux,  -m32 modifier needs to be used.

$ gcc hello.c -m32 -o hello.out will create a 32 bits application.
$ gcc hello.c -m64 -o hello.out will create a 64 bits application.

Regards,
Rubén