problem compiling 32 bit application on 64 bit Linux server
Ian Lance Taylor
iant@google.com
Fri Mar 11 06:00:00 GMT 2011
Ishita Kapadiya <ishimegh@gmail.com> writes:
> CC FLAGS I have used are - /usr/bin/gcc -fpic -DNET_SSL -DLinux
> -DLINUX -D_REENTRANT
> LD FLAGS are - /usr/bin/gcc -shared -m32 --verbose
Are you passing -m32 when you compile?
> /usr/bin/ld: warning: i386:x86-64 architecture of input file `test.o'
> is incompatible with i386 output
This is telling you that you used -m32 on the link line but that test.o
was compiled without -m32.
Ian
More information about the Gcc-help
mailing list