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. how to load a dynamic library on demand from a QT method

how to load a dynamic library on demand from a QT method

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 5 Posters 10.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.
  • Q Qt Enthusiast

    My question is If my load the dynamic library like

    is there direct way algorithm is

    void loadSharedObject() {
    //load the
    // Call the function names directly
    // no extra code for resolving the function /symbols names
    // for example
    fun1()
    fun2()
    }

    because the dyanamic libary in my is QLibrary

    kshegunovK Offline
    kshegunovK Offline
    kshegunov
    Moderators
    wrote on last edited by
    #21

    @Qt-Enthusiast said in how to load a dynamic library on demand from a QT method:

    // Call the function names directly
    // no extra code for resolving the function /symbols names
    // for example

    No there isn't a way to do that. This is what linkers and loaders were created for. You can't leave a bunch of unresolved symbols that are supposed to be explicitly loaded at runtime, it just doesn't work that way.

    Read and abide by the Qt Code of Conduct

    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