From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.


Error when try buid QtGuiApplication in visual studio 2015



  • i install QtPackage addin to visual studio 2015 also install qt-opensource-windows-x86-winrt-msvc2015-5.7.0.exe from : http://ftp.jaist.ac.jp/pub/qtproject/archive/qt/5.7/5.7.0/

    and add two path (winrt_x64_msvc2015 , winrt_x86_msvc2015) to Qt versions.

    but when i try to build QtGuiApplication project this errors occur.

    Severity    Code    Description Project File    Line    Suppression State
    Error (active)      command-line error: invalid macro definition: \ QtGuiApplication1   c:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\main.cpp  1   
    Error   LNK2019 unresolved external symbol __imp__RoInitialize@4 referenced in function _WinMain@16 QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    Error   LNK2019 unresolved external symbol __imp__RoGetActivationFactory@12 referenced in function "public: __thiscall AppContainer::AppContainer(void)" (??0AppContainer@@QAE@XZ)  QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    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)   QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    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)   QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    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)  QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    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)    QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\QtGuiApplication1\qtmaind.lib(qtmain_winrt.obj) 1   
    Error   LNK1120 6 unresolved externals  QtGuiApplication1   C:\Users\127051\Documents\Visual Studio 2015\Projects\C++\QtGuiApplication1\Win32\Debug\\QtGuiApplication1.exe  1
    

    how can i fix that?