PDA

View Full Version : How to link to a DLL in PRO file



richardander
23rd December 2008, 11:50
Hello,

I created two QT c++ projects in Windows. One is about algorithms and it makes a dll (algorithms.dll). the other is a test application.

In the PRO file for the test application, I added one line:

LIBS += algorithms.lib

this lib is the corresponding lib file for that dll.

But when I compile the vc project created by this PRO file, I got the link error

error LNK2001: unresolved external symbol "public: virtual void __....

Obviously, the definitions in dll cann't be found during the link process.

Can anyone help me with this problem?

Thank you very much!

jpn
23rd December 2008, 12:30
Did you export symbols? If not, try searching the forums for "Q_DECL_EXPORT".