Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. External Library
Forum Updated to NodeBB v4.3 + New Features

External Library

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 211 Views
  • 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.
  • S Offline
    S Offline
    syrine
    wrote on last edited by
    #1

    Hi All, I am trying to import an external static library in my project. I have added .h files in my QT Project and added the static library via the import external library option. But I am getting an error message as "Undefined reference to .... function ....". and followed by this error "collect2.exe: error: ld returned 1 exit status"

    Note: The library isn't created with QT. I am using MingW for compiling the library and the qt project.

    Please help !

    JonBJ 1 Reply Last reply
    0
    • S syrine

      Hi All, I am trying to import an external static library in my project. I have added .h files in my QT Project and added the static library via the import external library option. But I am getting an error message as "Undefined reference to .... function ....". and followed by this error "collect2.exe: error: ld returned 1 exit status"

      Note: The library isn't created with QT. I am using MingW for compiling the library and the qt project.

      Please help !

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @syrine
      So ld/collect2 is telling you that function is not found. Either you are not linking against the library, or function is not defined and exported from it. Or maybe some clue from the exact error message.

      1 Reply Last reply
      2

      • Login

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