Hi,
I have installed QT-4.5 successfully, while installing the webissues client the "configure" happens properly but during "make" I get the following error and process aborts
mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’:
mainwindow.cpp:191: error: invalid use of incomplete type ‘struct QTimer’
/usr/local/Trolltech/Qt-4.5.0/include/QtGui/qwindowdefs.h:82: error: forward declaration of ‘struct QTimer’
mainwindow.cpp:192: error: invalid use of incomplete type ‘struct QTimer’
/usr/local/Trolltech/Qt-4.5.0/include/QtGui/qwindowdefs.h:82: error: forward declaration of ‘struct QTimer’
mainwindow.cpp:193: error: invalid use of incomplete type ‘struct QTimer’
/usr/local/Trolltech/Qt-4.5.0/include/QtGui/qwindowdefs.h:82: error: forward declaration of ‘struct QTimer’
mainwindow.cpp:195: error: no matching function for call to ‘MainWindow::connect(QTimer*&, const char [11], MainWindow* const, const char [19])’
How to fix this?
Thanks,
Arun
- Log in to post comments
Hello,
There's simply a missing include in the mainwindow.cpp. To fix it add the following line:
The reason such errors sometimes appear in the trunk is that I'm using a precompiled header which already has all includes. Precompiled headers don't work under Linux so I always test and fix such errors before making the release.
You should have write access to SVN so you can fix this error (and other missing includes if there are any) for yourself.
Regards,
Michał
Thanks Michał, I had to include QTimer and QToolButton in mainwindow.cpp and builder.cpp.