Re: Error Message ‘Glib::ObjectBase::ObjectBase()’ is protected



On Fri, 28 Sep 2012 22:49:24 -0400, kenton wilson gmail com wrote:
>I'm getting an error message when I compile and it isn't obvious to me
>what is wrong. I've googled but to no avail.  Do the following error
>messages bring any vague recollections as to the what the problem
>might be?
>
>Kenton

OK, never mind, I found it. I left the 'public' keyword off from a
class that I was inheriting from. Dang, took me a long while to see
that. Ugh! Thanks if you spent some time thinking about my question.

Kenton

>
>/usr/include/glibmm-2.4/glibmm/objectbase.h: In constructor
>?uim::Main_screen::Main_screen()?:
>/usr/include/glibmm-2.4/glibmm/objectbase.h:61:3: error:
>?Glib::ObjectBase::ObjectBase()? is protected
>Main_screen.cc:12:53: error: within this context
>/usr/include/glibmm-2.4/glibmm/objectbase.h:86:11: error:
>?Glib::ObjectBase::~ObjectBase()? is protected
>Main_screen.cc:12:53: error: within this context



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