Cross compilation

Andy Green andy at warmcat.com
Tue Nov 28 17:53:10 UTC 2006


Fernando Apesteguía wrote:
> Helo list,
> 
> I'm using FC6 for x86_64. I need to compile a program for linux 32
> bits. I tried with the -m32 flag to gcc, but I got:
> 
> core_recv.c:(.text+0x130): undefined reference to `__umoddi3'
> 
> and tons of ld warnings:

Just guessing, but try using gcc to do the link, again giving the -m32 
switch instead of using ld.

-Andy




More information about the fedora-list mailing list