I am having trouble compiling the following code:
header
I removed all my other methods and such to try and see what is wrong.Code:
#ifndef ITEMSLISTFORM_H #define ITEMSLISTFORM_H #include <QtSql> #include <QtGui> #include "ui_itemslistform.h" { Q_OBJECT public: posItemListForm(); }; #endif
implementation
I use this basic style of coding for man ui forms but this gives be the following gcc errors:Code:
#include <QtSql> #include <QtGui> #include "itemslistform.h" posItemListForm::posItemListForm() {} // it had this before i simplified things: // posItemListForm(QWidget *parent) : QFrame ( parent )
It is in the out*.txt files, i had to break it up since it was so long.
Anyway, I compile qt4 apps all day long and never see a problem with this. Is it a name collision thing? what more info could help? I have tried with gcc-4 and 3.4, they have different, but similar issues. I use ubuntu, could it be a bug in there includes? Thanks in advance for any assistance.