Announcement

Collapse
No announcement yet.

Easiest way to get new g++ compiler on Kubuntu 14.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Easiest way to get new g++ compiler on Kubuntu 14.04

    I've just started playing around with C++ on Kubuntu, and one of the first things I tried is a simple regex...

    ...and it doesn't work. Apparently g++ the standard library that comes with versions below 4.9 doesn't implement it, and the default version in Trusty is 4.8.2:

    Code:
    feathers-mcgraw@Hobbs-T440s:~$ g++ --version
    g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
    Copyright (C) 2013 Free Software Foundation, Inc.                                            
    This is free software; see the source for copying conditions.  There is NO                   
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Is there a backport I can use to get a newer version of g++? I'm assuming doing so won't affect any other apps because they all come as binaries?

    I am vaguely aware that I could use a different library to do this (boost seems popular) but I'd rather learn to use the standard library so I don't have to re-learn later.
    Last edited by Feathers McGraw; Sep 19, 2014, 01:46 PM.
    samhobbs.co.uk

    #2
    https://wiki.ubuntu.com/ToolChain#PPA_packages

    Comment


      #3
      Awesome, thank you!
      samhobbs.co.uk

      Comment

      Working...
      X