Results 1 to 4 of 4

Thread: error LNK2019: unresolved external symbol

  1. #1
    Join Date
    Oct 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default error LNK2019: unresolved external symbol

    Hi guys,

    I´m with trouble here.

    I had a library to build in MSVS2010. I built him and one .lib file was created.


    But my version Qt is Qt 4.8.1 for Desktop MSVS 2008 (Qt SDK).

    I added in -pro file this
    Qt Code:
    1. #LIBS += -L$$PWD/ASN1/lib/ -lASN1
    To copy to clipboard, switch view to plain text mode 

    When i run the code various errors are detected.
    They are all:
    Qt Code:
    1. error LNK2019: unresolved external symbol
    To copy to clipboard, switch view to plain text mode 

    I hope you'll help me.

    best regards,
    8080205

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: error LNK2019: unresolved external symbol

    C++ compilers from Visual Studio 2010 and 2008 are not binary compatible, so you might want to check what the library exports and maybe you need to build both the library and your application with the same version of Visual Studio.

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

    Default Re: error LNK2019: unresolved external symbol

    The line you added to your PRO file is a comment. Remove the '#' if you want it to do something.

  4. #4
    Join Date
    Oct 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: error LNK2019: unresolved external symbol

    Hi everybody.

    Thanks for your help guys.

    Best regards,
    8080205

Similar Threads

  1. error LNK2001: unresolved external symbol _IID_ID3DXEffec tStateManager
    By Tusharsankhala in forum Installation and Deployment
    Replies: 0
    Last Post: 16th May 2012, 18:16
  2. Help - LNK2019: Unresolved external symbol
    By marc2050 in forum Newbie
    Replies: 3
    Last Post: 17th May 2011, 01:29
  3. Replies: 3
    Last Post: 29th April 2011, 09:13
  4. Replies: 4
    Last Post: 5th January 2011, 15:51
  5. Replies: 1
    Last Post: 10th April 2009, 18:07

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.