Compile a 32 bit program on 64 bit system

On my 64 bit laptop with Ubuntu Mate when I try to compile a certain file I get this error message

ld: i386 architecture of input file is incompatible with i386:x86-64 output

Is there some software or a command that could solve this.
Thanks.

Hi @PeterJohnson,

take a look here first, before you try compiling more files!:

https://help.ubuntu.com/community/MultiArch

1 Like

Thank you very much wolfman, this cleared things up for me.

1 Like

Hi Peter,

I have marked this as solved unless you have any other business?. :smiley:

Merry Xmas. :smiley: