本文介绍了链接到Qt中的共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚创建了tinyxml作为共享库,并想要弄清楚如何链接它。
I've just created tinyxml as a shared library, and would like to figure out how to link it. How is this accomplished?
推荐答案
您必须在pro文件中添加includepath和libs。
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/
这篇关于链接到Qt中的共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!