将QtMinMigrate与Qt5一起使用时链接错误

时间:2014-07-28 09:41:34

标签: c++ qt dll mfc

经过一些尝试,我终于能够在Qt5.3上编译QtwinMigrate库(QtSolutions_MFCMigrationFramework-head.lib)。

请参阅this topic以获取上下文:

但是当我尝试将此库与MFC应用程序中的QtwinMigrate示例代码一起使用时,我收到以下链接错误:

* error LNK2019: symbole externe non résolu "__declspec(dllimport) public: static class QApplication * __cdecl QMfcApp::instance()
* error LNK2019: symbole externe non résolu "__declspec(dllimport) public: __thiscall QWinWidget::QWinWidget()
* error LNK2019: symbole externe non résolu "__declspec(dllimport) public: static int __cdecl QMfcApp::run(class CWinApp *)

导致这种情况的原因是什么?

0 个答案:

没有答案