5

how to compile 32bit on CentOS 5 64bin

view full story
linux-howto

http://www.linuxquestions.org – first I use gcc to compile it with -m32. /usr/bin/gcc -g -w -m32 -fPIC -c -x c -shared -o -I. -I/prog/lib test.c then I try to link it use /usr/bin/ld -shared -o test.so test.o but here I get the wrong report /usr/bin/ld: warning: i386 architecture of input file `test.o' is incompatible with i386:x86-64 output test.o: In function `dfm_test': /misc/test.c:238: undefined reference to `_GLOBAL_OFFSET_TABLE_' /misc/test.c:286: undefined reference to `odb__call_do' But if compile it without -m32 then the link is OK, but I need th (HowTos)