我正在尝试将我的 Qt 项目设置从 Visual Studio 2013 升级到 2015。它几乎完成了,但我在 qtmaind.lib 中遇到了一些错误。
1>qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部
象征函数 _WinMain@16 中引用的 imp__RoInitialize@4
1>qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部
函数中引用的符号 __imp__RoGetActivationFactory@12
“公共:__thiscall AppContainer::AppContainer(void)”
(??0AppContainer@@QAE@XZ) 1>qtmaind.lib(qtmain_winrt.obj) : 错误
LNK2019:无法解析的外部符号 _WindowsCreateStringReference@16
在函数“private: void __thiscall”中引用
微软::WRL::Wrappers::HStringReference::CreateReference(wchar_t
const *,无符号整型,无符号整型)"
(?CreateReference@HStringReference@Wrappers@WRL@Microsoft@@AAEXPB_WII@Z)
1>qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部
函数“public: void 中引用的符号 _WindowsDeleteString@4
__thiscall Microsoft::WRL::Wrappers::HString::Release(void)" (?Release@HString@Wrappers@WRL@Microsoft@@QAEXXZ)
1>qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部
函数“public: 中引用的符号 _WindowsGetStringRawBuffer@8”
wchar_t const * __thiscall
Microsoft::WRL::Wrappers::HString::GetRawBuffer(unsigned int *)const "
(?GetRawBuffer@HString@Wrappers@WRL@Microsoft@@QBEPB_WPAI@Z)
1>qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部
函数“public: static void 中引用的符号 _RoOriginateError@8
__cdecl Microsoft::WRL::ErrorHelper::OriginateError(long,struct HSTRING*)"
(?OriginateError@?$ErrorHelper@$0A@@WRL@Microsoft@@SAXJPAUHSTRING__@@@Z)
Qt 5.6-rc(2016 年 2 月 22 日 15:11)
链接到 WindowsApp.lib。这应该可以解决你的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)