Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. unresolved external symbol _WINRT_IMPL_SysStringLen@4 referenced in function
Forum Updated to NodeBB v4.3 + New Features

unresolved external symbol _WINRT_IMPL_SysStringLen@4 referenced in function

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
2 Posts 1 Posters 570 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KJ92
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KJ92
      wrote on last edited by
      #2

      Was able to resolve it by adding LIBS += -lWindowsApp to *.pro file.

      Thread can be closed.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved