g77 problem with -lstdc++

Kevin J. Cummings cummings at kjchome.homeip.net
Sun Apr 27 18:56:35 UTC 2008


Paul Smith wrote:
> On Sun, Apr 27, 2008 at 7:40 PM, Kevin J. Cummings
> <cummings at kjchome.homeip.net> > > I am experiencing the following
> problem with g77
>>> $ g77 -O4 -lstdc++ cwrapper.o toyprob.o algencanma.o algencan.o -o
>> algencanma
>>> /usr/bin/ld: cannot find -lstdc++
>>> collect2: ld returned 1 exit status
>>> $
>>>
>>> Any ideas?
>>>
>>  If you installed a compat g77 package, you may also need to install a
>> compat runtime library as well, but you would have thought that would be a
>> part of the package dependencies.  do you have any of:
>>
>>
>>> libstdc++-4.1.2-33
>>> compat-libstdc++-296-2.96-139
>>> compat-libstdc++-33-3.2.3-62
>>>
>>  installed?  These are installed on my F8 server.
> 
> Thanks, Kevin. I have
> 
> # rpm -q libstdc++
> libstdc++-4.1.2-33
> #
> 
> but
> 
> # yum install compat-libstdc++
> Plugin "gpgcheck" uses deprecated constant TYPE_INTERFACE.
> Please use TYPE_INTERACTIVE instead.
> Loading "gpgcheck" plugin
> Setting up Install Process
> Parsing package install arguments
> No package compat-libstdc++ available.
> Nothing to do
> #
> 
> Any further ideas?

Sorry, that package names are:

compat-libstdc++-296
compat-libstdc++-33

The rest of the names were version numbers.  Try:

	yum install compat-libstdc++-33

or

	yum install compat-libstdc++-296

which one you need depends on which library g77 is generating code for....

> Paul

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)




More information about the users mailing list