This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem compiling 32 bit application on 64 bit Linux server


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]