Unresolved external characters in qtmaind.lib

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

1> qtmaind.lib (qtmain_winrt.obj): error LNK2019: unresolved external symbol imp__RoInitialize @ 4, referring to the function _WinMain @ 16 1> qtmaind.lib (qtmain_winrt.obj): error LNK2019: unresolved external symbol __etpact_octr functions "public: __thiscall AppContainer :: AppContainer (void)" (? 0AppContainer @@ QAE @XZ) 1> qtmaind.lib (qtmain_winrt.obj): error LNK2019: unresolved external symbol _WindowsCreateStringReference @ 16 link in function __thall void Microsoft :: WRL :: Packers :: HStringReference :: CreateReference (wchar_t const *, unsigned int, unsigned int) "(? CreateReference @HStringReference @ Packers @WRL @Microsoft @@ AAEXPB_WII @Z) 1> qtmaind.lib (qtmain_winrt. obj): error LNK2019: unresolved external character _WindowsDeleteString @ 4 ss falls into the function "public: void __thiscall Microsoft :: WRL :: Wrappers :: HString :: Release (void)" (? Release @HString @Wrappers @WRL @Microsoft @@ QAEXXZ) 1> qtmaind.lib (qtmain_winrt.obj) : LNK2019 error: unresolved external symbol _WindowsGetStringRawBuffer @ 8, referring to the function "public: wchar_t const * __thiscall Microsoft :: WRL :: Wrappers :: HString :: GetRawBuffer (unsigned int *) const" (? GetRawBuffer @HString @ Packers @WRL @Microsoft @@ QBEPB_WPAI @Z) 1> qtmaind.lib (qtmain_winrt.obj): LNK2019 error: unresolved external symbol _RoOriginateError @ 8, which is referenced by the function "public: static void __cdecl :: ErrorHelper <0> :: OriginateError (long, struct HSTRING *) "(? OriginateError @? $ ErrorHelper @ $ 0A @@ WRL @Microsoft @@ SAXJPAUHSTRING __ @@@ Z)

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

+1
source share
2 answers

link to WindowsApp.lib. This should solve your problems.

+3
source

At the very least, to get GetActivationFactory you need to set a link to runtimeobject.lib.

+1
source

Source: https://habr.com/ru/post/1441548/


All Articles