unresolved external symbol _WINRT_IMPL_SysStringLen@4 referenced in function
-
Trying to move from Qt5 to QT6. I compiled QT from source code.
Now I'm trying to compile our software with the compiled QT6, i get this linkage error:
Qt6Cored.lib(qlocale_win.cpp.obj) : error LNK2019: unresolved external symbol _WINRT_IMPL_SetErrorInfo@8 referenced in function "struct winrt::hresult __cdecl winrt::impl::get_runtime_activation_factory<struct winrt::Windows::System::UserProfile::IGlobalizationPreferencesStatics>(struct winrt::param::hstring const &,void * *)" (??$get_runtime_activation_factory@UIGlobalizationPreferencesStatics@UserProfile@System@Windows@winrt@@@impl@winrt@@YA?AUhresult@1@ABUhstring@param@1@PAPAX@Z)
Qt6Cored.lib(qlocale_win.cpp.obj) : error LNK2019: unresolved external symbol _WINRT_IMPL_GetErrorInfo@8 referenced in function "struct winrt::hresult __cdecl winrt::impl::get_runtime_activation_factory<struct winrt::Windows::System::UserProfile::IGlobalizationPreferencesStatics>(struct winrt::param::hstring const &,void * *)" (??$get_runtime_activation_factory@UIGlobalizationPreferencesStatics@UserProfile@System@Windows@winrt@@@impl@winrt@@YA?AUhresult@1@ABUhstring@param@1@PAPAX@Z)
Qt6Cored.lib(qlocale_win.cpp.obj) : error LNK2019: unresolved external symbol _WINRT_IMPL_SysAllocString@4 referenced in function "public: virtual int __stdcall winrt::impl::error_info_fallback::GetDescription(wchar_t * *)" (?GetDescription@error_info_fallback@impl@winrt@@UAGHPAPA_W@Z)
Qt6Cored.lib(qlocale_win.cpp.obj) : error LNK2019: unresolved external symbol _WINRT_IMPL_SysFreeString@4 referenced in function "public: static void __cdecl winrt::impl::bstr_traits::close(wchar_t *)" (?close@bstr_traits@impl@winrt@@SAXPA_W@Z)
Qt6Cored.lib(qlocale_win.cpp.obj) : error LNK2019: unresolved external symbol _WINRT_IMPL_SysStringLen@4 referenced in function "public: __thiscall winrt::hresult_error::hresult_error(struct winrt::hresult,struct winrt::take_ownership_from_abi_t)" (??0hresult_error@winrt@@QAE@Uhresult@1@Utake_ownership_from_abi_t@1@@Z)Any idea how debug this ? before this error, i got Qt6Cored.lib not found error but was able to resolve it by adding <my compiledQT6>/lib to path