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. DLL issue
QtWS25 Last Chance

DLL issue

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    I am having trouble on WIndows with Qt 5.4. I created a dll with QtCreator, the file created is something like foobar.dll
    I am trying to figure out how to properly link it in a Qt application. For this app I have in my project file:

    LIB += -L../lib -lfoobar

    The error I get is:
    LINK : fatal error LNK1181: cannot open input file 'foobar.lib'

    Can someone explain how I fix this, do I create a foobar.lib, if so how

    Oh I am using Qt /QtCreator for MSVS2013

    Thanks in advance for any help or suggestions
    David

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Is it plugin or simple dll ? Look at QPluginLoader or QLibary class for more information on how to load them.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DBoosalis
        wrote on last edited by
        #3

        It is a regular library, I don't want to load it via QLibrary, not sure if that is even possible for me as the app makes reference to this would be dll code everywhere. I mean if you called the "sin()" function I am pretty sure your code has to link with the shared math lib at compile time or your going to get an unresolved external reference

        1 Reply Last reply
        0
        • IamSumitI Offline
          IamSumitI Offline
          IamSumit
          wrote on last edited by
          #4

          Hi.
          I think before doing anything you should see this
          "here":http://qt-project.org/forums/viewthread/26537

          Be Cute

          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