kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #22648
Re: GCC and C++14
Agreed, given the upcoming change in compiler defaults, we really should
at least pick /a/ standard and set it, rather than just assuming the
compiler will continue to use '98.
On Thu, Jan 14, 2016 at 08:24:39PM +0000, Jon Neal wrote:
> I understand people not wanting to even switch to C++11 as it is still
> relatively new. I just wanted to point out that a standard should be put in
> CMakeLists.txt.
>
> For now (until at least the next Ubuntu LTS comes out in April since that
> seems to be the slowest updating OS to support) maybe set the C++98 as the
> default, and have a compiler flag for enabling C++11? Rather than ignoring
> C++11 entirely we could at least make sure that we don't have any errors
> that would make switching at a later time more difficult.
>
> I'd be happy to provide/set up the build on jenkins.
>
> Jon
>
> On Thu, Jan 14, 2016 at 2:54 PM Chris Pavlina <pavlina.chris@xxxxxxxxx>
> wrote:
>
> > For what it's worth...
> >
> > https://gcc.gnu.org/gcc-4.8/cxx0x_status.html
> >
> > As of GCC 4.8.1, C++11 is pretty much fully supported. They use the term
> > "experimental", but they do list everything and say "yes" to almost
> > everything. Is there some compatibility issue I'm missing here? It looks
> > to me like we can build C++11 on /all/ our supported platforms now.
> >
> > On Thu, Jan 14, 2016 at 01:35:36AM +0000, Jon Neal wrote:
> > > Just read this the other day and figured it would be good to discuss
> > before
> > > it happens.
> > >
> > > GCC is going to be defaulting to C++14 for compiler flags when GCC 6 is
> > > released in ~6 months. I browsed the CMakeLists.txt in the root directory
> > > and didn't see anything about setting a standard. Nowish would be a good
> > > time to pick a C++ standard and put it in there.
> > >
> > > I know Wayne has mentioned in the recent past the wish to not switch to
> > > C++11 yet[1] which I understand. FWIW when the next Ubuntu LTS is
> > released
> > > in 3 months the gcc provided will have C++11 out of experimental. Just
> > food
> > > for thought.
> > >
> > > Jon
> >
> > > _______________________________________________
> > > Mailing list: https://launchpad.net/~kicad-developers
> > > Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > > Unsubscribe : https://launchpad.net/~kicad-developers
> > > More help : https://help.launchpad.net/ListHelp
> >
> >
References