Re: C++11 flags for jhbuild
- From: Murray Cumming <murrayc murrayc com>
- To: Ian Martin <martin_id vodafone co nz>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: C++11 flags for jhbuild
- Date: Sun, 19 Jul 2015 15:45:58 +0200
On Sun, 2015-07-19 at 15:44 +0200, Murray Cumming wrote:
On Sun, 2015-07-19 at 23:09 +1200, Ian Martin wrote:
Hi,
I'm trying to build gtkmm with jhbuild. glibmm fails with a number of
warnings and errors starting with
warning: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
/opt/gnome/include/sigc++-2.0/sigc++/functors/functor_trait.h:91:3:
warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
/opt/gnome/include/sigc++-2.0/sigc++/functors/functor_trait.h:91:36:
error: 'decltype' has not been declared
/opt/gnome/include/sigc++-2.0/sigc++/functors/functor_trait.h:96:44:
error: 'nullptr' was not declared in this scope
= sizeof(check(static_cast<T_functor*>(nullptr))) == sizeof(int)
I'm guessing this means I need to enable C++11 within jhbuild. Do I do
this in my .jhbuildrc or should this be a compiler flag added within the
glibmm configure.ac?
This seems to be a -Wc++0x-compat warning. Do you have that in your
jhbuild config file somehow?
Or maybe you just need to run autogen.sh again.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]