c++qtshared-libraries

Linking to Shared Library in Qt


I've just created tinyxml as a shared library, and would like to figure out how to link it. How is this accomplished?


Solution

  • You have to add includepath and libs in your pro file.

    Something like the following. Just change your paths.

    LIBS += -ltinyxml
    
    LIBS += -L/libs/tinyxml/lib
    
    INCLUDEPATH += /libs/tinyxml/include/