PDA

View Full Version : Qt compilation error -- QtCppIntegration



jmandile
10th November 2008, 01:41
Hello,

Compile error for Qt4.4.3 when trying to add the configuration option -qtnamespace QtCppIntegration.

If I do not use this option, Qt compiles fine, if I do I get:

qaxobject.h:62: error: specialization of `template<class T> struct QtCppIntegration::QMetaTypeId' in different namespace

I am on WindowsXP SP2
using gcc version 3.4.2 and mingw32-make version 3.80.

I am trying to get designer plugins to work in the Qt eclipse integration version 1.4.3

Thank you in advance for any and all advice
Jack

P.S. this is the actual print out.

mingw32-make[3]: Entering directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NAMESPACE=QtCppIntegration -DQT_EDITION=QT_EDITION_DESKTOP -DQT_N
O_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\
include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_s
hared\qaxbase.o qaxbase.cpp
In file included from qaxbase.cpp:24:
qaxobject.h:62: error: specialization of `template<class T> struct QtCppIntegration::QMetaTypeId' in different namespace
../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:177: error: from definition of `template<class T> struct QtCppIntegration::QMetaTypeId'

qaxbase.cpp: In function `bool QtCppIntegration::checkHRESULT(LONG, EXCEPINFO*, QtCppIntegration::QAxBase*, const QtCppIntegration::QString&, uint)':
qaxbase.cpp:3349: warning: converting of negative value `-0x000000001' to `short unsigned int'
mingw32-make[3]: *** [tmp/obj/release_shared/qaxbase.o] Error 1
mingw32-make[3]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
mingw32-make[2]: *** [release] Error 2
mingw32-make[2]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt/container'
mingw32-make[1]: *** [sub-container-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/tmp/qt-win-commercial-src-4.4.3/src/activeqt'
mingw32-make: *** [sub-activeqt-make_default-ordered] Error 2

C