views:

219

answers:

1

How do i reference the dll file from the qt project. can someone give me the sample .pro file?

Thx.

A: 

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

esavard