Results 1 to 4 of 4

Thread: Help - LNK2019: Unresolved external symbol

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Help - LNK2019: Unresolved external symbol

    Hi.
    My setup is windows 7 and compiling using QTCreator.
    I got this error.
    mainwindow.obj:-1: error: LNK2019: unresolved external symbol

    I think it has something to do with an external library? How do I link the library?

    Thanks.
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help - LNK2019: Unresolved external symbol

    You can start by searching the forum for similar issues (I mean linking libraries and not LNK2019).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  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: Help - LNK2019: Unresolved external symbol

    With the correct additions to the LIBS variable in your PRO file. This topic has been covered many times in this forum.

    "QTCreator" is not a compiler, it is an IDE. Your compiler is Microsoft's VC++ and its linker.

    --
    D'oh! Got to type faster

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help - LNK2019: Unresolved external symbol

    Quote Originally Posted by ChrisW67 View Post
    D'oh! Got to type faster
    No. Use the "Preview Post" or "Go Advanced" button
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 29th April 2011, 09:13
  2. Replies: 4
    Last Post: 5th January 2011, 15:51
  3. Replies: 1
    Last Post: 10th April 2009, 18:07
  4. unresolved external symbol
    By tgreaves in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2009, 19:49
  5. Unresolved External Symbol
    By munna in forum General Discussion
    Replies: 1
    Last Post: 10th May 2006, 19:25

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.