Qt6.1.2 static + MSVS2019 + Extension Qt Visual Studio Tools 2.7.1.20
-
I create console application
when I build application I has plenty errors C7525, C2429, E0439 .... the errors claim that need option /std:c++17
I was switch it on the project but errors was not resolved.
where is mistake in my settings?command line to compilation and linking is bellow.
/MP /ifcOutput "x64\Release" /GS /W1 /Zc:wchar_t /I"C:\Qt\qt6\include" /I"C:\Qt\qt6\include\QtGui" /I"C:\Qt\qt6\include\QtCore" /I"C:\Qt\qt6\mkspecs\win32-msvc" /Gm- /O2 /Fd"x64\Release\vc142.pdb" /Zc:inline /fp:precise /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_ENABLE_EXTENDED_ALIGNED_STORAGE" /D "WIN64" /D "NDEBUG" /D "QT_NO_DEBUG" /D "QT_GUI_LIB" /D "QT_CORE_LIB" /errorReport:prompt /WX- /Zc:forScope /std:c17 /Gd /MD /std:c++17 /FC /Fa"x64\Release" /EHsc /nologo /Fo"x64\Release" /Fp"x64\Release\test.pch" /diagnostics:column/OUT:"C:\project\QT\Rep\test\x64\Release\test.exe" /MANIFEST /NXCOMPAT /PDB:"C:\project\QT\Rep\test\x64\Release\test.pdb" /DYNAMICBASE "C:\Qt\qt6\plugins\platforms\qwindows.lib" "imm32.lib" "oleaut32.lib" "shlwapi.lib" "winspool.lib" "wtsapi32.lib" "C:\Qt\qt6\lib\Qt6OpenGL.lib" "C:\Qt\qt6\lib\objects-Release\QWindowsIntegrationPlugin_resources_1.rcc\qrc_openglblacklists.cpp.obj" "C:\Qt\qt6\lib\objects-Release\QWindowsIntegrationPlugin_resources_2.rcc\qrc_cursors.cpp.obj" "C:\Qt\qt6\plugins\iconengines\qsvgicon.lib" "C:\Qt\qt6\plugins\imageformats\qgif.lib" "C:\Qt\qt6\plugins\imageformats\qicns.lib" "C:\Qt\qt6\plugins\imageformats\qico.lib" "C:\Qt\qt6\plugins\imageformats\qjpeg.lib" "C:\Qt\qt6\plugins\imageformats\qsvg.lib" "C:\Qt\qt6\lib\Qt6Svg.lib" "C:\Qt\qt6\plugins\imageformats\qtga.lib" "C:\Qt\qt6\plugins\imageformats\qtiff.lib" "C:\Qt\qt6\plugins\imageformats\qwbmp.lib" "C:\Qt\qt6\plugins\imageformats\qwebp.lib" "C:\Qt\qt6\plugins\styles\qwindowsvistastyle.lib" "C:\Qt\qt6\lib\Qt6Widgets.lib" "dwmapi.lib" "uxtheme.lib" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_1.rcc\qrc_qstyle.cpp.obj" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_2.rcc\qrc_qstyle1.cpp.obj" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_3.rcc\qrc_qmessagebox.cpp.obj" "C:\Qt\qt6\lib\Qt6Gui.lib" "d3d11.lib" "dxgi.lib" "dxguid.lib" "gdi32.lib" "C:\Qt\qt6\lib\Qt6BundledHarfbuzz.lib" "C:\Qt\qt6\lib\Qt6BundledFreetype.lib" "C:\Qt\qt6\lib\Qt6BundledLibpng.lib" "d2d1.lib" "dwrite.lib" "C:\Qt\qt6\lib\objects-Release\Gui_resources_1.rcc\qrc_qpdf.cpp.obj" "C:\Qt\qt6\lib\Qt6Core.lib" "mpr.lib" "userenv.lib" "advapi32.lib" "kernel32.lib" "netapi32.lib" "ole32.lib" "shell32.lib" "user32.lib" "uuid.lib" "version.lib" "winmm.lib" "ws2_32.lib" "C:\Qt\qt6\lib\Qt6BundledPcre2.lib" "C:\Qt\qt6\lib\Qt6EntryPoint.lib" "comdlg32.lib" "odbc32.lib" "odbccp32.lib" /MACHINE:X64 /PGD:"C:\project\QT\Rep\test\x64\Release\test.pgd" /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Release\test.exe.intermediate.manifest" /LTCGOUT:"x64\Release\test.iobj" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1
-
I create console application
when I build application I has plenty errors C7525, C2429, E0439 .... the errors claim that need option /std:c++17
I was switch it on the project but errors was not resolved.
where is mistake in my settings?command line to compilation and linking is bellow.
/MP /ifcOutput "x64\Release" /GS /W1 /Zc:wchar_t /I"C:\Qt\qt6\include" /I"C:\Qt\qt6\include\QtGui" /I"C:\Qt\qt6\include\QtCore" /I"C:\Qt\qt6\mkspecs\win32-msvc" /Gm- /O2 /Fd"x64\Release\vc142.pdb" /Zc:inline /fp:precise /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_ENABLE_EXTENDED_ALIGNED_STORAGE" /D "WIN64" /D "NDEBUG" /D "QT_NO_DEBUG" /D "QT_GUI_LIB" /D "QT_CORE_LIB" /errorReport:prompt /WX- /Zc:forScope /std:c17 /Gd /MD /std:c++17 /FC /Fa"x64\Release" /EHsc /nologo /Fo"x64\Release" /Fp"x64\Release\test.pch" /diagnostics:column/OUT:"C:\project\QT\Rep\test\x64\Release\test.exe" /MANIFEST /NXCOMPAT /PDB:"C:\project\QT\Rep\test\x64\Release\test.pdb" /DYNAMICBASE "C:\Qt\qt6\plugins\platforms\qwindows.lib" "imm32.lib" "oleaut32.lib" "shlwapi.lib" "winspool.lib" "wtsapi32.lib" "C:\Qt\qt6\lib\Qt6OpenGL.lib" "C:\Qt\qt6\lib\objects-Release\QWindowsIntegrationPlugin_resources_1.rcc\qrc_openglblacklists.cpp.obj" "C:\Qt\qt6\lib\objects-Release\QWindowsIntegrationPlugin_resources_2.rcc\qrc_cursors.cpp.obj" "C:\Qt\qt6\plugins\iconengines\qsvgicon.lib" "C:\Qt\qt6\plugins\imageformats\qgif.lib" "C:\Qt\qt6\plugins\imageformats\qicns.lib" "C:\Qt\qt6\plugins\imageformats\qico.lib" "C:\Qt\qt6\plugins\imageformats\qjpeg.lib" "C:\Qt\qt6\plugins\imageformats\qsvg.lib" "C:\Qt\qt6\lib\Qt6Svg.lib" "C:\Qt\qt6\plugins\imageformats\qtga.lib" "C:\Qt\qt6\plugins\imageformats\qtiff.lib" "C:\Qt\qt6\plugins\imageformats\qwbmp.lib" "C:\Qt\qt6\plugins\imageformats\qwebp.lib" "C:\Qt\qt6\plugins\styles\qwindowsvistastyle.lib" "C:\Qt\qt6\lib\Qt6Widgets.lib" "dwmapi.lib" "uxtheme.lib" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_1.rcc\qrc_qstyle.cpp.obj" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_2.rcc\qrc_qstyle1.cpp.obj" "C:\Qt\qt6\lib\objects-Release\Widgets_resources_3.rcc\qrc_qmessagebox.cpp.obj" "C:\Qt\qt6\lib\Qt6Gui.lib" "d3d11.lib" "dxgi.lib" "dxguid.lib" "gdi32.lib" "C:\Qt\qt6\lib\Qt6BundledHarfbuzz.lib" "C:\Qt\qt6\lib\Qt6BundledFreetype.lib" "C:\Qt\qt6\lib\Qt6BundledLibpng.lib" "d2d1.lib" "dwrite.lib" "C:\Qt\qt6\lib\objects-Release\Gui_resources_1.rcc\qrc_qpdf.cpp.obj" "C:\Qt\qt6\lib\Qt6Core.lib" "mpr.lib" "userenv.lib" "advapi32.lib" "kernel32.lib" "netapi32.lib" "ole32.lib" "shell32.lib" "user32.lib" "uuid.lib" "version.lib" "winmm.lib" "ws2_32.lib" "C:\Qt\qt6\lib\Qt6BundledPcre2.lib" "C:\Qt\qt6\lib\Qt6EntryPoint.lib" "comdlg32.lib" "odbc32.lib" "odbccp32.lib" /MACHINE:X64 /PGD:"C:\project\QT\Rep\test\x64\Release\test.pgd" /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Release\test.exe.intermediate.manifest" /LTCGOUT:"x64\Release\test.iobj" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1