needing help again...

John Gluck john.gluck at sympatico.ca
Sun Apr 22 13:55:01 UTC 2001


Hi

Did you check for any spurious characters in normal3view.h and normal3view.cpp. Sometimes a couple of
extra characters are accidently typed and cause this tyoe of error.

Was the Normal3View class generated by kdevelop??? If not you may need to prevent multiple inclusions of
the headers by doing something like:

#ifndef FILENAME_H
#define FILENAME_H

//All the rest of your header files stuff

#endif FILENAME_H

If that doesn't work, then perhaps you could include your files in another post. It's easier to
understand what's happening when you can see the code.

John

Tjabo Kloppenburg wrote:

> hi,
>
> I'm trying to compile a simple "KDE Normal App" (Normal3) for some hours now.
> I want the app to be a simple html browser. I thought I've got to make the
> Normal3View inherit KHtmlPart instead of QWidget. But when modifying
> normal3view.h to include khtmlview.h and khtml_part.h and changing the class
> definition to
> "class Normal3View : public KHtmlPart // QWidget"
>
> the compiler (F9) says:
> ...
> In file included from normal3view.cpp:23:
> normal3view.h:41: parse error before `{'
> normal3view.h:42: non-member function `className()' cannot have `const'
> method qualifier
> normal3view.h:42: parse error before `protected'
> normal3view.h:47: destructors must be member functions
>
> and so on.
> Whats wrong?
> Is it wrong to inherit KHtmlPart? Do I have to create an instance of
> KHtmlPart in the constructor of Normal3View : public QWidget ?
>
> Hints welcome! :^)
> (I know, I've got to modify the constructor of the view class. but after
> changing this the same "parse error before {' is shown.)
> (I removed the Q_OBJECT marco - no change)
>
> tk.
> --
> Tjabo Kloppenburg
> www.taponet.de
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list