kkk777kkk
25th May 2011, 12:16
Hi.
I am porting project from Qt3 to Qt4 also porting it to QtCreator. Project consist of huge count of files and dependencies and now i resolving unresolved symbols for linker. When i add another file to project i see many compiler errors in qvariant.h . That is strange error such as " '::~QVariant' : illegal global destructor" - it looks like it can not understand that it is name space of QVariant class but upper there is "class Q_CORE_EXPORT QVariant"; or it can not understand that "QVariant(const QString &string);" is a constructor but think that it is function and say that i need to add return type, imho second error also tells that it can not see class name space. I dont understand how it can be and how my project can cause this errors.
Help please to solve this or just show steps how such error could be investigated.
Qt 4.7.2, compiler from mvs2008
I am porting project from Qt3 to Qt4 also porting it to QtCreator. Project consist of huge count of files and dependencies and now i resolving unresolved symbols for linker. When i add another file to project i see many compiler errors in qvariant.h . That is strange error such as " '::~QVariant' : illegal global destructor" - it looks like it can not understand that it is name space of QVariant class but upper there is "class Q_CORE_EXPORT QVariant"; or it can not understand that "QVariant(const QString &string);" is a constructor but think that it is function and say that i need to add return type, imho second error also tells that it can not see class name space. I dont understand how it can be and how my project can cause this errors.
Help please to solve this or just show steps how such error could be investigated.
Qt 4.7.2, compiler from mvs2008