Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select an older compiler in Microsoft Visual C++ 2019?

As written here, under "Project Settings" I should be able to specify the compiler to be used for the current project. However, I cannot find this menu entry in Visual Studio 2019.

I have both Visual C++ 2019 and 2013, and would like to use the new IDE with the old compiler. How can I do it?

Is it possible to do it with the "Community" editions?

like image 967
Pietro Avatar asked Apr 29 '19 13:04

Pietro


People also ask

How do I change compiler in Visual Studio?

You can set compiler options for each project in its Visual Studio Property Pages dialog box. In the left pane, select Configuration Properties, C/C++ and then choose the compiler option category. The topic for each compiler option describes how it can be set and where it is found in the development environment.

How do I know my compiler version in Visual Studio 2019?

This will show the verbose compiler version information in the build Output box. Just enter “-Bv” in the Project Properties > C/C++ > Command Line edit box. Now, open the “VC\Auxiliary\Build14. 20” directory in the folder where you installed Visual Studio version 16.1 Preview 3.

How do I select a compiler in VS code?

Select the Terminal > Run Build Task command (Ctrl+Shift+B) from the main menu. This will display a dropdown with various compiler task options. If you are using a GCC toolset like MinGW, you would choose C/C++: g++.exe build active file.

How do I know which compiler I am using in Visual Studio?

You can select the compiler and corresponding toolset that will be used to build a project with the “Platform Toolset” property under General Configuration Properties for C++ projects. Any installed compilers that are applicable to your project type will be listed in the “Platform Toolset” dropdown.


1 Answers

Here are the official instructions, taken from this page:

  1. In Visual Studio, in Solution Explorer, open the shortcut menu for your project (not for your solution) and then choose Properties to open your project Property Pages dialog box.

  2. In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.

  3. In the left pane of the dialog box, expand Configuration Properties and then select General.

  4. In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list. For example, if you have installed the Visual Studio 2010 toolset, select Visual Studio 2010 (v100) to use it for your project.

  5. Choose the OK button.


You can see a screenshot of my window below:

screenshot of config window

like image 120
Das_Geek Avatar answered Sep 20 '22 15:09

Das_Geek