Linking to Shared Library in Qt

蓝咒 提交于 2019-12-18 16:25:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!