Results 1 to 2 of 2

Thread: Link error in QT 5.1

  1. #1
    Join Date
    Mar 2013
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Link error in QT 5.1

    Hi

    I recently migrate my QT 4.8.1 to QT 5.1, but when i am trying to run my application in QT5 i am getting link errors, but it is working fine with previous version, I am using QuaZip in my application

    I am attaching the error list

    Attachment 9525

    Attachment 9526


    but when I am building QuaZip using QT5 the error count is reduced but still Link errors are there
    this error list i am getting

    quaziplib.lib(zip.obj):-1: error: LNK2019: unresolved external symbol _deflate referenced in function _zipWriteInFileInZip

    quaziplib.lib(zip.obj):-1: error: LNK2019: unresolved external symbol _deflateEnd referenced in function _zipCloseFileInZipRaw

    quaziplib.lib(zip.obj):-1: error: LNK2019: unresolved external symbol _crc32 referenced in function _zipWriteInFileInZip

    quaziplib.lib(unzip.obj):-1: error: LNK2001: unresolved external symbol _crc32

    quaziplib.lib(zip.obj):-1: error: LNK2019: unresolved external symbol _deflateInit2_ referenced in function _zipOpenNewFileInZip3

    quaziplib.lib(zip.obj):-1: error: LNK2019: unresolved external symbol _get_crc_table referenced in function _zipOpenNewFileInZip3

    quaziplib.lib(unzip.obj):-1: error: LNK2001: unresolved external symbol _get_crc_table

    quaziplib.lib(unzip.obj):-1: error: LNK2019: unresolved external symbol _inflate referenced in function _unzReadCurrentFile

    quaziplib.lib(unzip.obj):-1: error: LNK2019: unresolved external symbol _inflateEnd referenced in function _unzCloseCurrentFile

    quaziplib.lib(unzip.obj):-1: error: LNK2019: unresolved external symbol _inflateInit2_ referenced in function _unzOpenCurrentFile3

    I am sorry for my poor english.
    Please help me.
    thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Link error in QT 5.1

    It seems you have also changed your Microsoft Visual C++ version from MSVC10 to 11 (VS2010 to VS2012). Quazip needs to be built with the same version of the Microsoft compiler as your Qt library and application. To build Quazip requires the zlib library which appears to be missing in your dev environment.

Similar Threads

  1. QT5 Link error
    By maaroofmoideen in forum Qt Programming
    Replies: 0
    Last Post: 4th September 2013, 10:26
  2. DSO link error in qt 5
    By wxf04125 in forum Qt Programming
    Replies: 0
    Last Post: 2nd June 2013, 19:55
  3. moc link error
    By Zalwou06 in forum Qt Programming
    Replies: 3
    Last Post: 13th September 2012, 04:03
  4. Replies: 11
    Last Post: 5th May 2011, 15:05
  5. moc link error
    By user_mail07 in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2007, 20:30

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
  •  
Qt is a trademark of The Qt Company.