Link to dll file from qt project

How to link to a dll file from a qt project. can anyone give me a sample .pro file?

thank.

+3
source share
1 answer

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

LIBS += "PathToLib/libcryptopp.a"

Please refer to the Qt documentation, it is quite complete: http://doc.trolltech.com/4.6/qmake-variable-reference.html#libs

You can also dynamically load DLLs using QLibrary

+2
source

Source: https://habr.com/ru/post/1730685/


All Articles