问题
I've just created tinyxml as a shared library, and would like to figure out how to link it. How is this accomplished?
回答1:
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/
来源:https://stackoverflow.com/questions/7182229/linking-to-shared-library-in-qt