qtmaind.lib中无法解析的外部符号

Ufx*_*Ufx 2 qt visual-studio-2015 qt5.6

我试图将我的Qt项目设置从Visual Studio 2013升级到2015。这几乎完成了,但是qtmaind.lib出现了一些错误。

1> qtmaind.lib(qtmain_winrt.obj):错误LNK2019:无法解析的外部符号 在函数_WinMain @ 16 1> qtmaind.lib(qtmain_winrt.obj)中引用的imp__RoInitialize @ 4:错误LNK2019:在函数“公共:__thiscall AppContainer :: AppContainer(void)”中引用的未解析的外部符号__imp__RoGetActivationFactory @ 12(?? 0AppContainer @@ QAE @ XZ)1> qtmaind.lib(qtmain_winrt.obj):错误LNK2019:在函数“ private:void __thiscall Microsoft :: WRL :: Wrappers :: HStringReference :: CreateReference(wchar_t const *,”中引用的未解析的外部符号_WindowsCreateStringReference @ 16 unsigned int,unsigned int)”(?CreateReference @ HStringReference @ Wrappers @ WRL @ Microsoft @@ AAEXPB_WII @ Z)1> qtmaind.lib(qtmain_winrt.obj):错误LNK2019:函数“ public:中引用的外部符号_WindowsDeleteString @ 4尚未解析无效__thiscall Microsoft :: WRL :: Wrappers :: HString ::Release(void)”(?Release @ HString @ Wrappers @ WRL @ Microsoft @@ QAEXXZ)1> qtmaind.lib(qtmain_winrt.obj):错误LNK2019:函数“ public:wchar_t const * __thiscall中引用的未解析的外部符号_WindowsGetStringRawBuffer @ 8 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 __cdecl Microsoft :: WRL :: ErrorHelper <0> :: OriginateError(long,struct HSTRING中引用的未解析的外部符号_RoOriginateError @ 8wchar_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:静态无效__cdecl Microsoft :: WRL :: ErrorHelper <0> :: OriginateError(long,struct HSTRING)中引用的未解析的外部符号_RoOriginateError @ 8wchar_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:静态无效__cdecl Microsoft :: WRL :: ErrorHelper <0> :: OriginateError(long,struct HSTRING)中引用的未解析的外部符号_RoOriginateError @ 8 *)“(?OriginateError @?$ ErrorHelper @ $ 0A @@ WRL @ Microsoft @@ SAXJPAUHSTRING __ @@@@ Z)

Qt 5.6-rc(2016年2月22日15:11)

joh*_*han 5

链接到WindowsApp.lib。那应该解决您的问题。