Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] How can i resolve LNK:2019 error for external library
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How can i resolve LNK:2019 error for external library

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    muzo
    wrote on last edited by
    #1

    Im using external header and cpp files.
    headers' directory is ../../../include/foo1/foo2
    sources' directory is ../../../src/foo1/foo2

    so i added to pro file

    INCLUDEPATH += ../../../include/foo1/foo2
    and
    DEPENDPATH += ../../../src/foo1/foo2

    But im getting LNK:201 unresolved symbol error. How can i fix it.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You need to link your application to the library

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        muzo
        wrote on last edited by
        #3

        How can i do this?

        if in pro file which keyword do i have to use? LIBS += ??

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Yes
          @LIBS += -lyour_library_name -Lpath_to_your_library@

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved