We have a winner! Nice find Nick. Someone can set up a build server an set CMAKE_CXX_STANDARD accordingly without having to touch a single line of KiCad source to at least see what happens. Make sure you test with older versions of Boost (1.54). My guess is that is where the issues will turn up. Either Boost or wxWidgets. Boost does provide tested compiler builds on their website for each release so there may be some useful information there as well.
On 1/14/2016 4:50 PM, Nick Østergaard wrote: > I suggest using the optoin cmake have for choosing the standard, see: > https://cmake.org/cmake/help/v3.1/prop_tgt/CXX_STANDARD.html > > And the developer can also set as a cmake option, for example: > -DCMAKE_CXX_STANDARD=11 > > 2016-01-14 21:24 GMT+01:00 Jon Neal <[email protected]>: >> 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 <[email protected]> >> 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 : [email protected] >>>> Unsubscribe : https://launchpad.net/~kicad-developers >>>> More help : https://help.launchpad.net/ListHelp >>> >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~kicad-developers >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~kicad-developers >> More help : https://help.launchpad.net/ListHelp >> > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : [email protected] > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

