qtmaind.lib 中未解析的外部符号 [英] Unresolved external symbols in qtmaind.lib

查看:27
本文介绍了qtmaind.lib 中未解析的外部符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的 Qt 项目设置从 Visual Studio 2013 升级到 2015.它几乎完成了,但我在使用 qtmaind.lib 时遇到了一些错误.

I am trying to upgrade my Qt-project settings from Visual Studio 2013 to 2015. It almost done but I get some errors with qtmaind.lib.

1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external函数 _WinMain@16 中引用的符号 imp__RoInitialize@41>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"中引用Microsoft::WRL::Wrappers::HStringReference::CreateReference(wchar_tconst *,unsigned int,unsigned int)"(?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@8wchar_t const * __thiscallMicrosoft::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<0>::OriginateError(long,struct HSTRING *)"(?OriginateError@?$ErrorHelper@$0A@@WRL@Microsoft@@SAXJPAUHSTRING__@@@Z)

1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external symbol imp__RoInitialize@4 referenced in function _WinMain@16 1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external symbol __imp__RoGetActivationFactory@12 referenced in function "public: __thiscall AppContainer::AppContainer(void)" (??0AppContainer@@QAE@XZ) 1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external symbol _WindowsCreateStringReference@16 referenced in function "private: void __thiscall Microsoft::WRL::Wrappers::HStringReference::CreateReference(wchar_t const *,unsigned int,unsigned int)" (?CreateReference@HStringReference@Wrappers@WRL@Microsoft@@AAEXPB_WII@Z) 1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external symbol _WindowsDeleteString@4 referenced in function "public: void __thiscall Microsoft::WRL::Wrappers::HString::Release(void)" (?Release@HString@Wrappers@WRL@Microsoft@@QAEXXZ) 1>qtmaind.lib(qtmain_winrt.obj) : error LNK2019: unresolved external symbol _WindowsGetStringRawBuffer@8 referenced in function "public: 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) : error LNK2019: unresolved external symbol _RoOriginateError@8 referenced in function "public: static void __cdecl Microsoft::WRL::ErrorHelper<0>::OriginateError(long,struct HSTRING *)" (?OriginateError@?$ErrorHelper@$0A@@WRL@Microsoft@@SAXJPAUHSTRING__@@@Z)

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

Qt 5.6-rc (22-Feb-2016 15:11)

推荐答案

链接到 WindowsApp.lib.这应该可以解决您的问题.

link to WindowsApp.lib. That should resolve your issues.

这篇关于qtmaind.lib 中未解析的外部符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆