I suddenly started getting some strange errors while compiling the code.
i have not modified any files from these locations.
for a while it was working perfect, and i observed these suddenly, i could not rectify the problem.
now even if i open a new project and write qDebug() <<"hello";
also it is giving these errors.
i cut few lines because of no of lines constraint .
In file included from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qhash.h:50:0,
from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qdebug.h:46,
from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/QDebug:1,
from mainwindow.cpp:2:
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:9:7: error: redefinition of ‘class QTypeInfo<T>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2084:1: error: previous definition of ‘class QTypeInfo<T>’
In file included from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qhash.h:50:0,
from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/qdebug.h:46,
from /usr/local/Trolltech/Qt-4.8.0/include/QtCore/QDebug:1,
from mainwindow.cpp:2:
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:62:1: error: redefinition of ‘class QTypeInfo<bool>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2206:1: error: previous definition of ‘class QTypeInfo<bool>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:63:1: error: redefinition of ‘class QTypeInfo<char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2207:1: error: previous definition of ‘class QTypeInfo<char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:64:1: error: redefinition of ‘class QTypeInfo<signed char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2208:1: error: previous definition of ‘class QTypeInfo<signed char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:65:1: error: redefinition of ‘class QTypeInfo<unsigned char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2209:1: error: previous definition of ‘class QTypeInfo<unsigned char>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:66:1: error: redefinition of ‘class QTypeInfo<short int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2210:1: error: previous definition of ‘class QTypeInfo<short int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:67:1: error: redefinition of ‘class QTypeInfo<short unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2211:1: error: previous definition of ‘class QTypeInfo<short unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:68:1: error: redefinition of ‘class QTypeInfo<int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2212:1: error: previous definition of ‘class QTypeInfo<int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:69:1: error: redefinition of ‘class QTypeInfo<unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2213:1: error: previous definition of ‘class QTypeInfo<unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:70:1: error: redefinition of ‘class QTypeInfo<long int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2214:1: error: previous definition of ‘class QTypeInfo<long int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:71:1: error: redefinition of ‘class QTypeInfo<long unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2215:1: error: previous definition of ‘class QTypeInfo<long unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:72:1: error: redefinition of ‘class QTypeInfo<long long int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2216:1: error: previous definition of ‘class QTypeInfo<long long int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:73:1: error: redefinition of ‘class QTypeInfo<long long unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2217:1: error: previous definition of ‘class QTypeInfo<long long unsigned int>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qtypeinfo.h:74:1: error: redefinition of ‘class QTypeInfo<float>’
/usr/local/Trolltech/Qt-4.8.0/include/QtCore/qglobal.h:2218:1: error: previous definition of ‘class QTypeInfo<float>’
make: *** [mainwindow.o] Error 1
↧