Re: [gtkmm] Build error using jhbuild



The problem has persisted up to todays CVS build.  I managed to work
around it by changing the static_casts to C style type casts which
compiles at least.  Functionally, it shouldn't be any different.  I'm
not sure why it wasn't working though.  It even gave the same error with
reinterpret_casts so it almost has to be a compiler bug.

On Thu, 2004-06-17 at 03:13, Marcus Brubaker wrote:
> Using jhbuild to build gtkmm/glibmm from CVS I keep running into the
> following compile errors:
> 
> widget.cc: In member function `void
> Gtk::Widget::unset_fg(Gtk::StateType)':
> widget.cc:243: invalid static_cast from type `Gtk::StateType' to type
>    `GtkStateType'
> widget.cc: In member function `void
> Gtk::Widget::unset_bg(Gtk::StateType)':
> widget.cc:248: invalid static_cast from type `Gtk::StateType' to type
>    `GtkStateType'
> widget.cc: In member function `void
> Gtk::Widget::unset_text(Gtk::StateType)':
> widget.cc:253: invalid static_cast from type `Gtk::StateType' to type
>    `GtkStateType'
> widget.cc: In member function `void
> Gtk::Widget::unset_base(Gtk::StateType)':
> widget.cc:258: invalid static_cast from type `Gtk::StateType' to type
>    `GtkStateType'
> 
> 
> Anyone know how I might be able to fix these?  I am using an (older)
> version of gcc if that matters.  g++ --version sayes its 3.0.2.  Thanks.
> 
> Regards,
> -- 
> Marcus Brubaker <marcus brubaker utoronto ca>
-- 
Marcus Brubaker <mbrubake cs toronto edu>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]