开发者

Reference the dll file from the qt project

开发者 https://www.devze.com 2022-12-19 03:33 出处:网络
How do i reference the dll file from the qt project. can someone give me开发者_开发问答 the sample .pro file?

How do i reference the dll file from the qt project. can someone give me开发者_开发问答 the sample .pro file?

Thx.


You should use the .a (if you are using MinGW) that comes with your DLL and add a line like this one your .pro file:

LIBS += "PathToLib/libcryptopp.a"

Please refer to Qt documentation, it's pretty complete: http://doc.trolltech.com/4.6/qmake-variable-reference.html#libs

You could also load dynamically the DLL using QLibrary

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号