Results 1 to 2 of 2

Thread: error compiling using vs 2005

  1. #1
    Join Date
    Apr 2008
    Location
    California
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default error compiling using vs 2005

    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
    Last edited by jpn; 15th May 2008 at 11:35. Reason: missing [quote] tags
    - AR

  2. #2
    Join Date
    Apr 2008
    Location
    California
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: error compiling using vs 2005

    Found the solution for my problem in this thread.

    http://www.qtcentre.org/forum/f-inst...mbol-4672.html

    Happy Coding!!!
    - AR

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  2. Visual Studios 2005 rebuild question
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 20th January 2008, 12:20
  3. creating and Linking dll using vs 2005
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2007, 10:11
  4. QString in Visual Studio 2005 has compile error
    By KaKa in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2007, 11:05
  5. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 22:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.