By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,972 Members | 1,454 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,972 IT Pros & Developers. It's quick & easy.

usr/bin/ld: warning: i386 architecture of input file is incompatible with i386:x86-6

P: 62
Hi all,

I am having a problem, when I am compiling the code in 32 bit option on a
64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from
the linker .

/`../bin/amd64_stat_gnu_02015/WriteFault.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteLogic.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteModel.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteSaveRestore.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteWindows.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/WriteModelMap.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_02015/smac.o' is incompatible with i386:x86-64 output

is it that linker is linking the 64 bit libraries for 32 bit binaries, is there is any way to set the linking option again to 32 bit

please help me to resolve my problem

thanks in advance
srikar
Jan 13 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.