[lsb-discuss] LSB, GCC versions C++11 and libstdc++
john.dallman at siemens.com
Wed Feb 27 10:39:31 UTC 2013
> There are two issues with gcc 4.7 support. The first is compatibility
> with the compiler itself; the second is the addition of new features
> supported in the 4.7 version of the standard library.
> As Mats has mentioned, support for those new libstdc++ features is a
> fairly major project. It's on our list for LSB 5.0, but could be
> postponed, depending on other issues.
So, to make sure I understand this properly:
If you don't use C++11 features (this is most reliably avoided by using an
explicit option for an older C++ standard, such as "-std=c++98") then you can
build LSB-compliant applications to LSB 4.0 or LSB 3.1 standards using GCC
4.7.2 or later. Such applications will work on any Linux that's compliant
with the LSB version you used.
If you do use C++11 features, you can't build LSB-compliant applications at
present. This will become possible with the LSB version that supports C++11,
which will also require GCC 4.7.2 or later C++ run-times. That LSB version
is currently planned to be LSB 5.0, but the C++11 support could be postponed.
Is that correct?
From: lsb-discuss-bounces at lists.linux-foundation.org [mailto:lsb-discuss-bounces at lists.linux-foundation.org] On Behalf Of Jeff Licquia
Sent: 17 December 2012 17:23
To: lsb-discuss at lists.linux-foundation.org
Subject: Re: [lsb-discuss] LSB, GCC versions C++11 and libstdc++
On 12/17/2012 09:43 AM, Wichmann, Mats D wrote:
> An upgrade to GCC 4.7 is on the list, but not expect to happen very
> It's planned for LSB 5.0, but I don't see who's going to work on it.
> The group tends to defer C++-related work because it's not as simple
> as working on C-based libraries (Stew might pop in with a complaint
> those aren't simple either). Hopefully it will still make the cut for 5.0.
Clarification and correction:
There are two issues with gcc 4.7 support. The first is compatibility
with the compiler itself; the second is the addition of new features
supported in the 4.7 version of the standard library.
As Mats has mentioned, support for those new libstdc++ features is a
fairly major project. It's on our list for LSB 5.0, but could be
postponed, depending on other issues.
For support of the compiler itself, I do have to correct myself: we
tested gcc 4.7 against our existing SDK (including the 4.1-based C++
library). The current SDK (released in November) should reflect that
compatibility, and not complain about gcc 4.7.
You can see our bug on the compiler issue itself here:
As mentioned, however, any C++ 11 features that depend on changes to the
standard library will most likely not work with our SDK, even with gcc 4.7.
The Linux Foundation
+1 (317) 915-7441
licquia at linuxfoundation.org
Linux Foundation Events Schedule: events.linuxfoundation.org
Linux Foundation Training Schedule: training.linuxfoundation.org
lsb-discuss mailing list
lsb-discuss at lists.linux-foundation.org
Siemens Industry Software Limited is a limited company registered in England and Wales.
Registered number: 3476850.
Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, GU16 8QD.
More information about the lsb-discuss