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 problems
Qt 6.11 is out! See what's new in the release blog

DLL problems

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.6k 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.
  • S Offline
    S Offline
    Sorin
    wrote on last edited by
    #1

    I've created a shared library using Qt Creator( added QtCore and QtGui support ) but when I try to use this dll( I create an instance of a class from that dll ) into another app I'm getting app.exe exited with code -1073741515 at runtime and I don't know what I'm doing wrong.

    I added in my app .pro file the path to the dll:
    LIBS += "E:\Sorin\TestingQt\GUIComponents-build-desktop\debug\GUIComponents.dll"

    There are only 10 types of people in the world: Those who understand binary, and those who don't

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sorin
      wrote on last edited by
      #2

      If I'm adding the .dll to my folder app it's working but when I'm specifying the path to it I'm getting the error form above :(

      There are only 10 types of people in the world: Those who understand binary, and those who don't

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tony
        wrote on last edited by
        #3

        Hi,

        I don't think that in your executable the specified path of the DLL will be used. So you should store the DLL together with the executable, or copy it in a directory contained in your PATH environment variable.

        Tony.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sorin
          wrote on last edited by
          #4

          yes, that's the problem, the exe file doesn't know were to look for my dll, LIBS += path is used only at compile time. Thanks!

          There are only 10 types of people in the world: Those who understand binary, and those who don't

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Frank
            wrote on last edited by
            #5

            If you're using Qt Creator, you can modify the PATH to use in the Run environment, adding the path to your DLLs there.

            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