Code:
#ifndef CALENDARTIME_H #define CALENDARTIME_H #include <QWidget> #include "ui_calendar-time.h" { Q_OBJECT public: CT(CT *parent = 0); ~CT(); }; #endif // CALENDARTIME_H #include <QtGui/QApplication> #include "calendar-time.h" int main(int argc, char *argv[]) { CT w; CT.show(); return a.exec(); }
These are the errors:
calendar-time.h:8: error: expected class-name before '-' token
calendar-time.h:8: error: expected '{' before '-' token
calendar-time.h:8: error: expected unqualified-id before '-' token
mingw32-make[1]: *** [debug/main.o] Error 1
I tried a qmake it doesn't help. I seem to always get this problem. :confused
[/CODE]