News for hackers. Stuff that matters.
Re:We have C++14 by Guvante on Monday August 18, 2014 @06:35PM (#8195087)
> Let's face reality: it's a little unreasonable to expect every system you work on to have a compiler less than 3 years old.

If you are running Linux, this is one thing that Windows gets right. (Although as you say VC++ has some catching up to do still).

Re:We have C++14 by adrusi on Monday August 18, 2014 @07:27PM (#8195248)
Linux is on all parts of the spectrum here. Ubuntu LTS and Slackware are going to remain outdated by design. Arch Linux almost always have the most recent stable releases of GCC and clang, and you can even build development snapshots from AUR
Re:We have C++14 by shmerl on Monday August 18, 2014 @09:35PM (#8195658)
You don't need to use the compiler from the distro to release for that distro. There is such thing as cross compilation after all. Most do it out of habit and because distros don't offer such services out of the box. But if you build the cross compiler, you can use the newest one even if the distro ships the older.

For example I had a building machine running RHEL 5 which was building for both RHEL 5 and RHEL 6 while using gcc 4.8.2 for both (cross compilers).

Re:We have C++14 by wfunction on Tuesday August 19, 2014 @12:05AM (#8195988)
You say "if you build the cross-compiler" as though it's as simple as "if you cross the street". Have you ever tried building GCC? I've wasted days on it and in the end still failed to make it work.
Re:We have C++14 by shmerl on Tuesday August 19, 2014 @12:55AM (#8196070)
It is hard if you do it all manually. There are helpful tools like Crosstool-NG for example which make it easier.

See also https://en.wikipedia.org/wiki/Cross_compilers#External_links

Re:We have C++14 by exDM69 on Tuesday August 19, 2014 @10:18AM (#8197379)
> Have you ever tried building GCC? I've wasted days on it and in the end still failed to make it work.

I've hand-built GCC for half a dozen of different target architectures over the years and it's perhaps one of the most stable pieces of software when it comes to building it. I've only had one build failure over the years and that was unstable from git (even that usually works no problem).

To build GCC, follow the simple steps on the GCC manual. With a modern fast computer, it's all done in an hour or two (of mostly waiting).

Re:We have C++14 by wfunction on Tuesday August 19, 2014 @01:32PM (#8198643)
I don't know how you manage it, but I can tell you it is not reasonable to expect people to compile every compiler they want to use on every system they want to use it.
Re:We have C++14 by exDM69 on Wednesday August 20, 2014 @05:52AM (#8201702)
> I don't know how you manage it, but I can tell you it is not reasonable to expect people to compile every compiler they want to use on every system they want to use it.

If you're dealing with bare metal projects (kernel programming or micro controllers), building binutils and gcc for cross compiling from source is pretty much required. There are scripts that help and some distros have cross compilers in their package managers.

But building GCC is not difficult and it pretty much works first time, every time.

Re:We have C++14 by tshepang on Tuesday August 19, 2014 @03:17PM (#8199217)
No one implied people are expected to compile every compiler they want to use on every system they want to use it. Point was it's not hard. Maybe link to a message where you detailed your troubles?
Re:We have C++14 by 72deluxe on Tuesday August 19, 2014 @04:24AM (#8196414)
Heh! I am stuck on VC++ 2010 at work. I gaze longingly at C++11 features but can't use them. A pity, as the same codebase is also built under XCode and Clang.