Fedora Linux Support Community & Resources Center
  #1  
Old 12th March 2009, 03:47 AM
stardust496 Offline
Registered User
 
Join Date: Dec 2008
Posts: 15
gcc versions in fedora

Hi all,

I am using FC 10. I have upgraded to the latest gcc version via yum -

$ yum list gcc-c++
Loaded plugins: refresh-packagekit
Installed Packages
gcc-c++.i386 4.3.2-7 installed


$ g++ -v
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)


Now, in RHEL , the g++ 4.x compiler actually uses the libstdc++ that comes with g++3.4.x series. Is it the same story in Fedora?

Am I using an ancient libstdc++ or am I using the libstdc++ that comes with the upstream g++4.x series?

Many Thanks!
Reply With Quote
  #2  
Old 12th March 2009, 03:50 AM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,294
rpm -q libstdc++

V
Reply With Quote
  #3  
Old 12th March 2009, 03:57 AM
stardust496 Offline
Registered User
 
Join Date: Dec 2008
Posts: 15
Thanks!

Someday I will hopefully become more proficient with yum and rpm and not have to bother with such trivial questions.
Reply With Quote
  #4  
Old 12th March 2009, 04:03 AM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,294
You can have your cake and eat it too: if necessary, the gcc-3.4 compilers and old libstdc++ libs are available:
Code:
~]$ rpm -qa |grep -i compat|sort
[...]
compat-gcc-34-3.4.6-8.i386
compat-gcc-34-c++-3.4.6-8.i386
compat-gcc-34-g77-3.4.6-8.i386
[...]
compat-libgcc-296-2.96-139.i386
[...]
compat-libstdc++-296-2.96-139.i386
compat-libstdc++-33-3.2.3-62.i386
[...]
V
Reply With Quote
  #5  
Old 12th March 2009, 09:02 PM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,732
Be careful with installing the compat-* packages, they could cause conflicts when compiling. For example, yesterday I tried to compile the latest Octave (3.0.3) from source, and I kept getting errors about some basic C++ functions not being defined properly. Looking through the error messages, I saw that the compat-gcc-c++ 3.x versions of libraries and headers were being used instead of the newer 4.x versions. So I removed the compat-gcc-34-c++ and compat-libstdc++-33 packages, and voila, octave compiled cleanly.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
password/authorization prompts are using the QT versions and not the GTK versions. wangmaster Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 5 19th May 2009 05:44 PM
Getting rid of older versions of Fedora captain52 Using Fedora 13 12th February 2009 04:03 AM
different fedora versions? djvman Using Fedora 8 5th May 2005 03:45 PM


Current GMT-time: 14:33 (Friday, 28-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Renaissance Center Instagram Photos - Vis, Splitsko-Dalmatinska, Croatia