Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Which verison of gcc-3

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Tue Jun 20, 2006 8:23 pm    Post subject: Which verison of gcc-3 Reply with quote

I have just downloaded "Teach yourself C++ in 21 days"

On my laptop is gcc-3.3-base, and I have just installed the C++ complier gcc, with the required dependencies..

In the repository are other other versions of gcc-3, such as 3.2 and 3.4.

In my quest to become a fully fledged C++ guru in 21 days Rolling Eyes do I need these other versions?

What are they for?
Back to top
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Wed Jun 21, 2006 12:05 am    Post subject: RE: Which verison of gcc-3 Reply with quote

Basically they have upgraded the compiler. GCC 3.4 seems to be a lot of peoples favourites though 4.1 (if its available, not all distros have it) is probably the best.

I'd probably go for the 3.4 version in your position though 3.3 will be good enough to learn the language. Good luck with learning C++, the best thing I try to remember with programming is that its better to get a few working projects than have a load of almost working ones.
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Wed Jun 21, 2006 3:35 am    Post subject: RE: Which verison of gcc-3 Reply with quote

Thanks! 3.4 is available (Warty repository), thopugh I was wondering what would break if I installed it...

As for working projects, one more than just "Hello World" would be nice at the moment!


Last edited by alloydog on Wed Jun 21, 2006 8:14 am; edited 1 time in total
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Wed Jun 21, 2006 7:42 am    Post subject: RE: Which verison of gcc-3 Reply with quote

I'd go for what ever the default version is for your distro. To retain compatability. Then, if you wished, install later versions when they become available.


jm
_________________
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Back to top
View user's profile Send private message
alloydog
LXF regular


Joined: Thu Apr 07, 2005 8:32 pm
Posts: 600

PostPosted: Wed Jun 21, 2006 8:16 am    Post subject: RE: Which verison of gcc-3 Reply with quote

3.3 was installed as part of the base installation which is based on the Warty repository, but 3.4 is there also.

I'll leave things for know, till I get a bit more adventurous!
Back to top
View user's profile Send private message
jjmac
LXF regular


Joined: Fri Apr 08, 2005 2:32 am
Posts: 1996
Location: Sydney, Australia

PostPosted: Thu Jun 22, 2006 10:07 am    Post subject: RE: Which verison of gcc-3 Reply with quote

Howdy alloydog

As for your original point "do you need these other versions ?" ... probably not, some src packages for your distro may or may not be set up to be compiled with one or the other. 3.4 has an option change from 3.3, "-mtune=" rather than "-mcpu=". There is an ABI change with the 4.x series as well, which tends to make me a bit shy of using it Smile. Though i think the design goal is excellent. I will probably be waiting till 4.2 before i move their, unless the build scripts i do battle with end up winning Rolling Eyes , that is.

But as long as it wasn't being used in contradiction to the overall system, with regards to key compiles (X, libc6) i don't think it would cause any real breaking problems. It may even be interesting to see how the different apps got on.

"gcc.gnu.org" is always a good site to look around on, if not somewhat obscure/dry, as they tend to be, along with the other gcc sites.

>>
In my quest to become a fully fledged C++ guru in 21 days do I need these other versions?
>>

(grin)

Experimenting with the various "man" page examples can be interesting. Just putting together test runs to see just how the facility works. Data dumps, so to speak, can be quite revealing. And one just can't overlook SCI's site, including a general google for "templates", to look with any fairness at c++. But then, a person dosen't _have_ to use all the fancy facilities either. c++ is fine as just a better 'c'

good luck ...

jm
_________________
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast