Reference the dll file from the qt project
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
精彩评论