Re: How to compile 32-bit programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for help. I found glibc in my slackware instalion. It doesn't
replace X86_64 stuff because it is in seperate folders (for example
lib64 instead of lib).
Andrius

Tr, 2004-03-24 20:45, Rick Stevens raÅ¡Ä?:
> Andrius wrote:
> > I can compile, but I can't link files.
> 
> First, see if ld has 32-bit emulation.  Do "ld --verbose" to see what
> emulations are supported.  I don't have an AMD64 system, but I suspect
> you need to install the glib*.i386 stuff for that to work.  I don't
> know it that'd replace the glib*.x86_64 stuff or not.
> 
> FYI, crt1.o is the object file that gets control of a program when it's
> launched (it provides the "__main()" call which sets up the program's
> environment, then it calls your "main()" function).
> 
> > Tr, 2004-03-24 20:23, Andrius raÃ?¡Ã?â??:
> > 
> >>I can't find how to compile 32-bit programs in fedora for AMD64. (I
> >>tried g++ -m32 main.cpp  but got this "/usr/bin/ld: cannot open crt1.o:
> >>No such file or directory
> >>collect2: ld returned 1 exit status").
> >>
> >>
> > 
> > 
> > 
> 
> 
> -- 
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer     rstevens@xxxxxxxxxxxxxxx -
> - VitalStream, Inc.                       http://www.vitalstream.com -
> -                                                                    -
> -         Microsoft Windows:  Proof that P.T. Barnum was right       -
> ----------------------------------------------------------------------
> 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux