Main Page | Report this Page
Linux Forum Index  »  Linux Miscellaneous Topics 2  »  32-bit object code on 64-bit machine...
Page 1 of 1    

32-bit object code on 64-bit machine...

Author Message
Art Werschulz...
Posted: Mon Nov 02, 2009 1:28 pm
Guest
Hi.

Running Fedora 11 on both i686 and x86_64 platforms ...

I ran
g++ -c List.cc
on a 32-bit machine and
g++ -c testList.cc
on a 64-bit machine.

I then did
g++ -o testList testList.o List.o
which gave me the error msg
/usr/bin/ld: i386 architecture of input file `List.o' is incompatible
with i386:x86-64 output
collect2: ld returned 1 exit status

Since I'm working in a mixed (32-bit and 64-bit) situation, I would like
to use only one version of List.o. Given that /usr/lib has 32-bit
libraries and /usr/lib64 has 64-bit libraries, I suspect that this
should be doable. How can I do this?

Thanks.

--
Art Werschulz (8-{)} "Metaphors be with you." -- bumper sticker
GCS/M (GAT): d? -p+ c++ l++ u+ P++ e--- m* s n+ h f g+ w+ t+ r-
Net: agw at (no spam) dsm.fordham.edu http://www.dsm.fordham.edu/~agw
Phone: Fordham U. (212) 636-6325, Columbia U. (646) 775-6035
 
AZ Nomad...
Posted: Mon Nov 02, 2009 1:54 pm
Guest
On Mon, 02 Nov 2009 13:28:02 -0500, Art Werschulz <agw at (no spam) dsm.fordham.edu> wrote:
Quote:
Hi.

Running Fedora 11 on both i686 and x86_64 platforms ...

I ran
g++ -c List.cc
on a 32-bit machine and
g++ -c testList.cc
on a 64-bit machine.

I then did
g++ -o testList testList.o List.o
which gave me the error msg
/usr/bin/ld: i386 architecture of input file `List.o' is incompatible
with i386:x86-64 output
collect2: ld returned 1 exit status

Since I'm working in a mixed (32-bit and 64-bit) situation, I would like
to use only one version of List.o. Given that /usr/lib has 32-bit
libraries and /usr/lib64 has 64-bit libraries, I suspect that this
should be doable. How can I do this?

http://www.justfuckinggoogleit.com/search.pl?query=i386+architecture+of+input+file+is+incompatible
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Dec 08, 2009 4:18 am