I am trying to create a windows library with Qt using Visual Studio 2008. To test this I used one of the very simple example programs for the Qt Tutorial. If I compile as a executable it will compile. However, under the same settings except creating a dll I receive the following error amongst others.
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QApplication::~QApplication(void)" (__imp_??1QApplication@@UAE@XZ) referenced in function _main
I have search the Internet for a solution but haven't had any success. Let me know what you think. Also, I would be happy to provide additional information as needed. Note that Qt was statically compiled.