05.06.08

Another Qt Error

Posted in Qt at 10:58 am by philwinder

If you ever get the error:

In file included from c:/Qt/4.3.4/include/QtCore/qcoreevent.h:1,
from c:/Qt/4.3.4/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:48,
from c:/Qt/4.3.4/include/QtCore/qcoreapplication.h:1,
from c:/Qt/4.3.4/include/QtCore/QCoreApplication:1,
from src\qpnwsettings.cpp:3:
c:/Qt/4.3.4/include/QtCore/../../src/corelib/kernel/qcoreevent.h:52: error: `QtValidLicenseForCoreModule’ does not name a type
mingw32-make[1]: *** [build/qpnwsettings.o] Error 1
mingw32-make: *** [release] Error 2

This is due to a semicolon not being present at the end of a class definition in a header file when #ifdef and #endif statements are used. So for example:

#ifndef __FOO_H__
class foo
{

};
#endif

works fine (note the semicolon after the last bracket).

Leave a Comment