Skip to content

Latest commit

 

History

History
84 lines (53 loc) · 3.55 KB

visual_c++.md

File metadata and controls

84 lines (53 loc) · 3.55 KB

Version numbering: Wiki, other

Visual Studio, MSVC++ and cl have different version numbers. There's the branded version (printed on the box), the internal version (displayed in the About dialog box), and the compiler version (displayed by cl.exe and the _MSC_VER macro).

Par exemple:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" /help

MS: Microsoft VC: Visual C++ CRT: C Runtime

MT: Manifest Tool

Links: /MD /MDd, /MT, /MTd, /MP (Multiple Processes) M pour multithreaded module, D Dynamic vcruntime.dll

Linker flags: /LD, LDd : equivalent of -shared to create a DLL

Only C++ tools: link

VS Redistributable: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.23.27820\

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019

Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:

  • add -D_WIN32_WINNT=0x0601 to the compiler command line; or
  • add _WIN32_WINNT=0x0601 to your project's Preprocessor Definitions. Assuming _WIN32_WINNT=0x0601 (i.e. Windows 7 target).

https://stackoverflow.com/questions/2989810/which-cross-platform-preprocessor-defines-win32-or-win32-or-win32

https://docs.microsoft.com/fr-fr/cpp/build/reference/d-preprocessor-definitions?view=vs-2019

https://docs.microsoft.com/fr-fr/cpp/preprocessor/predefined-macros?view=vs-2019

https://docs.microsoft.com/fr-fr/windows/win32/winprog/using-the-windows-headers

https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?redirectedfrom=MSDN&view=vs-2019

C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/mt.exe

vs_community.exe --layout D:\Packages\vslayout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US d:\Packages\vslayout\vs_community.exe --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended

MSBuild.exe link.exe cl.exe devenv.exe https://docs.microsoft.com/en-us/cpp/build/reference/c-cpp-build-tools?view=vs-2019

MSBuild c++ https://docs.microsoft.com/en-us/cpp/build/walkthrough-using-msbuild-to-create-a-visual-cpp-project?view=vs-2019

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"

Links

https://developer.microsoft.com/fr-fr/windows/downloads/sdk-archive https://visualstudio.microsoft.com/fr/vs/older-downloads/ https://my.visualstudio.com/Downloads?q=visual%20studio%202015&wt.mc_id=o~msft~vscom~older-downloads

https://docs.microsoft.com/fr-fr/visualstudio/productinfo/2015-redistribution-vs

cl Versions

  • 19.00.23026 : VS2015 iso
  • 19.00.24210 : VS2015 With Update 3 from ISO
  • 19.00.24215.1 : VS2015 from Web Installer
  • 19.00.24245 : VS2015 from VS2019 Installer
  • 19.22.xxx : VS2019

https://devblogs.microsoft.com/cppblog/finding-the-visual-c-compiler-tools-in-visual-studio-2017/#comment-271656