g2c

Rick Stevens ricks at nerd.com
Thu Jul 30 01:14:25 UTC 2009


Patrick Dupre wrote:
> Hello,
> 
> With Fedora11 x86_64D
> When I link my file with -lg2c I get the following error:
> /usr/bin/ld: cannot find -lg2c
> 
> I am using:
> compat-gcc-34-g77-3.4.6-9.i386
> so I need to add:
> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6
> 
> something that I did not need to do with fedora10 i386
> (/usr/lib/gcc/i386-redhat-linux/3.4.6/)
> 
> For compatibilty reasons, I would like to avoid to have to
> modify my Makefile.

You're building on a 64-bit system now, so it wants to use the 64-bit
libraries by default.

I'll bet if you install compat-gcc-34-g77-3.4.6-9.x86_64 it'll work.

If you really want to build a 32-bit binary on a 64-bit machine, you
can, but you have to send the compiler and linker some flags.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-      A day for firm decisions!!!   Well, then again, maybe not!    -
----------------------------------------------------------------------




More information about the fedora-list mailing list