Compile-errors after adding a new dialog to project

Robert Robert
Sat Dec 11 21:37:14 GMT 1999


On Wed, 08 Dec 1999, Matto Fransen wrote:

> I compiled the project-so-far into a working thingy,
> then added a new dialog-class, put some widgets in it
> an did a <build complete sources> of the dialog.
> Recompiling and there are troubles in paradise ...
> 
> The compiler start complaining about a lot of syntax-errors 
> in a lot of include-files. 

Matto,

This is what I remember.  In the Dialog Classes' *.h file, only the class and method
declarations can be there.  No QWidget installations or configurations can be in
this file or it srews up the QT moc (macro compiler?) program.  This is why KDevelop
creates the separate data initialization function and puts it in it's own file.  I don't
remember all of the details, but I do remember that the decls have to be kept in a
separate file from the actual code that builds the widgets, sets the text, size etc.

I also seem to remember that the error messages caused by this problem are useless
at best.  They do not actually point to the real problem.

This is what I remember.  I could be wrong!

Good luck!

***************************
Robert M. Wheat, Jr.
belran at worldnet.att.net





More information about the KDevelop mailing list