Hi - first post here ...
So I'm writing my first major Qt app. Everything is going okay - the whole application compiles fine but I'm not sure everything is working perfectly so I want to put some qDebug statements in there to check on some things. However, when I try to compile with <QDebug> included I get the following compile time errors:
from ../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/io/qtextstream.h:48,
from ../../Qt/2010.02.1/qt/include/QtCore/qtextstream.h:1,
from ../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/io/qdebug.h:50,
from ../../Qt/2010.02.1/qt/include/QtCore/qdebug.h:1,
from QDriverThread.h:15,
from QDriverThread.cpp:8:
In file included from ../../Qt/2010.02.1/qt/include/QtCore/qlocale.h:1,
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:123: error: expected identifier before numeric constant
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:123: error: expected '}' before numeric constant
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:123: error: expected unqualified-id before numeric constant
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:548: error: expected unqualified-id before ')' token
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:549: error: expected unqualified-id before 'const'
../../Qt/2010.02.1/qt/include/QtCore/../../src/corelib/tools/qlocale.h:549: error: expected ')' before 'const'
There's a lot more qlocale.h errors after that but all of the same flavour. When I comment out my qDebugs and the #include <QDebug> everything compiles fine. I'm not doing anything locale specific BTW and don't include QLocal directly myself. I'm running under Windows XP, Qt 4.6 with MinGW as my tool set in NetBeans 6.8 IDE. Any suggestions?
Thanks
James