g++ x32 on x64

Hi,

I'm using ubuntu x64 and I have to compile my code to x32, but when I type:
g++ -m32 -o out32 Hello.cpp

show me the follow error:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Can I compile x32 on x64?

Cheers.
You need to install the package g++-multilib.
Hun thanks,
I cannot try it now, but tomorrow when test it I answer again, thanks for help.

Last edited on
Ok,
I've installed this pkg and works fine, thanks.
Topic archived. No new replies allowed.