Reputation: 10137
I've just created tinyxml as a shared library, and would like to figure out how to link it. How is this accomplished?
Upvotes: 7
Views: 13970
Reputation: 411
If you your library resides in the project directory, the following line may come in handy:
LIBS += -L$${PWD}
Upvotes: 0
Reputation: 2087
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/
Upvotes: 9