1

Building 32-bit SDL application on 64-bit

view story
linux-howto

http://askubuntu.com – I am using Ubuntu 11.10 64-bit. I am trying to compile a 32-bit C++ application that depends on SDL using g++ with the -m32 flag, but I'm getting incompatibility errors due to having a 64-bit version installed (I assume). Linker output below: /usr/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL /usr/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../libSDL.so when searching for -lSDL /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../lib (HowTos)