/usr/bin/ld: skipping incompatible foo.so when searching for foo
remove -m32 in command line flags
to build with 32bit binary, you have to install
sudo apt-get install gcc-multilib
and sudo apt-get install ia32-libs-dev
remove -m32 in command line flags
to build with 32bit binary, you have to install
sudo apt-get install gcc-multilib
and sudo apt-get install ia32-libs-dev