PDA

View Full Version : Problem porting Kivio MP on win32 from Qt 3 to Qt 4



Amanda
26th October 2006, 18:14
Hi,

I'm porting Kivio MP on a win32 platform (Windows XP) from Qt 3 to Qt 4. I ran the qt3to4 porting tool, set up a project in Eclipse 3.2 (using mingw32-make.exe to build), and was happily building and fixing compiler errors *until* getting stuck on the errors below.

Is it an Eclipse project setting problem or a Qt issue? I'm confused why it's complaining about forward declarations in the Qt code...how can I fix this issue?

C:/Qt/4.2.1/include/QtGui/../../src/gui/kernel/qwindowdefs.h error: forward
declaration of `const struct QColor'
C:/Qt/4.2.1/include/QtGui/../../src/gui/kernel/qwindowdefs.h error: forward
declaration of `struct QColor'
error: `color' has incomplete type
error: invalid use of undefined type `const struct QColor'
error: invalid use of undefined type `const struct QColor'
error: invalid use of undefined type `const struct QColor'
error: invalid use of undefined type `struct QColor'
error: invalid use of undefined type `struct QColor'
error: invalid use of undefined type `struct QColor'

Thanks,
Amanda

jacek
26th October 2006, 19:19
Are those the first errors you get about QColor? Maybe the compiler is trying to say, that you have to add #include <QColor> somewhere in your code?

Amanda
26th October 2006, 19:40
Thank you for the reply. I was just about to post that I had resolved the issue when I received your message - yes, your suggestion is correct. I was just thrown by the supposed errors in the Qt code.

Amanda