PDA

View Full Version : g++ / -std=c++0x ?



fade2gray
March 1st, 2010, 08:46 PM
Ubuntu 8.04.1 server edition.

I am seeing this when running a configuration file prior to compiling...

checking if g++ supports C++0x features with -std=c++0x... no
But I would rather see...

checking if g++ supports C++0x features with -std=c++0x... yes

Any advice please?

Simon17
March 1st, 2010, 08:50 PM
Get a newer version of GCC?

ssam
March 1st, 2010, 09:16 PM
http://packages.ubuntu.com/search?keywords=gcc shows the GCC/G++ versions in ubuntu releases.

http://gcc.gnu.org/projects/cxx0x.html shows that GCC 4.3 has only basic c++0x support, there is more in 4.4, and will be more still in 4.5. so you should probably upgrade to karmic which has 4.4.

fade2gray
March 2nd, 2010, 02:47 PM
Thanks for your replies.

I have been considering upgrading to Karmic since it's first release but have avoided doing so for fear of messing up my mail server, it took so long to get right first time round.

ssam
March 2nd, 2010, 04:37 PM
an alternative would be to build GCC 4.4 from source. but this can be quite a task.

or you could try installing karmic in a virtual machine.

fade2gray
March 2nd, 2010, 05:23 PM
or you could try installing karmic in a virtual machine.
Bingo :KS You just kicked me out of my senile stupor.
See - I knew fade2gray would be an apt nick. ;)