From kde-devel Wed Sep 29 09:03:54 1999 From: Waldo Bastian Date: Wed, 29 Sep 1999 09:03:54 +0000 To: kde-devel Subject: Re: problem kdetoys-19990924.tar.bz2 X-MARC-Message: https://marc.info/?l=kde-devel&m=93859573813347 On Wed, 29 Sep 1999, Kaoru Fukui wrote: > From: Waldo Bastian > > > > toplevel.cpp: In method `void TopLevel::fileOpen()': > > > > toplevel.cpp:322: invalid use of undefined type `class KToolBarButton > ' > > > > /usr/include/ktoolbar.h:186: forward declaration of `class KToolBarButton > ' > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > Or, more likely, toplevel.cpp hasn't included ktoolbarbutton.h yet. > > > > Cheers, > > Waldo > > I looked ktoolbar.h. > > Class KtoolBarButton is in ktoolbar.h, > but ktoolbar.h doesn't have "#include ". > > it's wrong. No. Files that need KtoolBarButton need to include ktoolbarbutton.h themselves. ktoolbar.h only contains a forward declaration of KToolBarButton. The actual declaration is in ktoolbarbutton.h. Cheers, Waldo