LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The latest gcc/g++ version we can find on a linux distribution is 4.6.3 ? (https://www.linuxquestions.org/questions/linux-newbie-8/the-latest-gcc-g-version-we-can-find-on-a-linux-distribution-is-4-6-3-a-4175415829/)

esgol 07-10-2012 01:17 AM

The latest gcc/g++ version we can find on a linux distribution is 4.6.3 ?
 
Is gcc 4.6.3 the latest version we can find on a linux distribution "pre-installed" without having to download source code and compile it ourself?

Kubuntu 12.04 ha 4.6.3 "pre-installed"

Is there any other distribution that has a latest version installed?

P.S.
I doubt there is any distribution having latest versions such as 4.7 without downloading & compiling yourself wright?

EricTRA 07-10-2012 01:26 AM

Hi,

On a Fedora 17 I have the following version of gcc without needing to download and compile:
Code:

gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
Kind regards,

Eric

esgol 07-10-2012 01:41 AM

OMG. :OOO My only fear is that with a most state of the art g++ will have probs with classic code. I saw many who want to backwards their gcc versions to 4.4 4.3 and so.

EricTRA 07-10-2012 02:02 AM

Hi,

If you assume you'll be having problems with the latest versions of the compiler, then why did you want to know what distro offers them by default? I'm no developer so I cannot elaborate on compatibility issues between compiler versions but if you're afraid of it, then stick with what works for your 'critical' projects and create for example a virtual machine that has the latest versions and run tests on that.

Kind regards,

Eric

esgol 07-10-2012 02:43 AM

Thank you. Just because I couldnt find anywhere a 4.7 binary package to simply sudo apt get instal, just source code XDDD xaxaxaxaxa

Your idea seems the best thanks

knudfl 07-10-2012 02:54 AM

Quote:

I saw many who want to backwards their gcc versions to 4.4 4.3
(K)ubuntu 12.04 is equipped with three compilers :
gcc / g++ versions 4.4.7 , 4.5.3 , 4.6.3.

And : It is an advantage to have them all installed.
Easy to use with e.g. : export CC=gcc-4.4 CXX=g++-4.4 && <other-command>

.

esgol 07-10-2012 05:19 AM

REALLY? :DDD SUPER!
Then if son a binary package of 4.7 comes to repository or i learn how to compile it my self i ll have all 4 :D :D
PERFECT THANK YOU VERY MUCH!

P.S.
And all this mess for Damned C11 conncurent programming lo

knudfl 07-10-2012 07:14 AM

Well, if you really want "g++-4.7", then either install Debian Wheezy ...
(Ubuntu 12.04 is a clone of Debian Wheezy + Sid, no big difference.)
Debian Wheezy has : g++-4.4.7, g++-4.5.3, g++-4.6.3, g++-4.7.1

Or install the "Debian Wheezy g++-4.7 compiler" into Ubuntu 12.04 :
It's 10 packages compiler / libraries.
(Tested OK on the 32bits Ubuntu 12.04. Should work as well in 64bits.)
... And you'll have the same four times g++ as Wheezy.

.


All times are GMT -5. The time now is 04:39 AM.