PDA

View Full Version : error compiling using vs 2005



arunredi
15th May 2008, 09:17
Hello,

I had evertything working fine with VS 2005 and Qt application being developed. I tried compiling Qt statically. After that whenever I'm compiling the Qt app by running F5 I get the following error messages:


Compiling...
snipitron.cpp
Linking...
LINK : C:\Users\Arun Reddy\Documents\Visual Studio 2005\Projects\Snipitron\Debug\Snipitron.exe not found or not built by the last incremental link; performing full link
snipitron.obj : error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A)
snipitron.obj : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
qtmaind.lib(qtmain_win.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
snipitron.obj : error LNK2001: unresolved external symbol "private: static class QTextCodec * QString::codecForCStrings" (?codecForCStrings@QString@@0PAVQTextCodec@@A)
snipitron.obj : error LNK2001: unresolved external symbol "private: static class QCoreApplication * QCoreApplication::self" (?self@QCoreApplication@@0PAV1@A)
snipitron.obj : error LNK2001: unresolved external symbol "public: static struct QListData::Data QListData::shared_null" (?shared_null@QListData@@2UData@1@A)
moc_snipitron.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QWidget::staticMetaObject" (?staticMetaObject@QWidget@@2UQMetaObject@@B)
qtmaind.lib(qtmain_win.obj) : error LNK2001: unresolved external symbol "public: static enum QSysInfo::WinVersion const QSysInfo::WindowsVersion" (?WindowsVersion@QSysInfo@@2W4WinVersion@1@B)
C:\Users\Arun Reddy\Documents\Visual Studio 2005\Projects\Snipitron\Debug\Snipitron.exe : fatal error LNK1120: 7 unresolved externals

can anyone help me???

Thanks

arunredi
16th May 2008, 02:32
Found the solution for my problem in this thread.

http://www.qtcentre.org/forum/f-installation-and-deployment-5/t-qt-static-with-vs2005-error-lnk2001-unresolved-external-symbol-4672.html

Happy Coding!!!