This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem compiling 32 bit application on 64 bit Linux server
- From: Ian Lance Taylor <iant at google dot com>
- To: Ishita Kapadiya <ishimegh at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 10 Mar 2011 22:00:45 -0800
- Subject: Re: problem compiling 32 bit application on 64 bit Linux server
- References: <AANLkTinzaiQy-gfyvKu-WMdNdq0xXERidZdxnZ2+h+Ds@mail.gmail.com>
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