I wrote like this:
gcc -m elf_i386
He says:
gcc: error: elf_i386: No such file or directory
Basically I am trying to compile a 32-bit program on a 64-bit system, but the error is:
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
which I checked a project built with -m32 and I see that all * .o files are 32-bit LSB ELBs, and /usr/lib/libSDL.so is also 32-bit ELB ELBs..so I can , need to go -m elf_i386 to ld right? but I do not use ld directly. I just use gcc to compile it.
source share