This wikiHow will teach you how to install Clang on Windows using Visual Studio 2019 version 16.1 Preview 2. When you install the preview of Visual Studio, you will also be able to install Clang.
Installing Clang on Windows 10+
If you want to use Clang for C/C++ on a Windows machine, first download the Visual Studio Installer from the Microsoft website (if you don't already have it on your machine. Open the Visual Studio Installer Community folder, click modify, and then add "clang" to install the program.
Steps
-
Go to https://visualstudio.microsoft.com/vs/preview/ . You can use any web browser to go to the Microsoft site and download Visual Studio.
-
Click Download Preview under "Community. " Unless you have purchased the software or are part of an organization that pays a monthly subscription, you'll want to download the version of the preview suited for the free version of Visual Studio.
- Save the .exe file or click click here to retry to save the download.
Advertisement -
Open the downloaded file. Most web browsers, like Chrome, give you a notification when your file is done downloading that you can click to open the file. Otherwise, navigate to your downloaded file in File Explorer.
- Click Yes if you're prompted to allow the program to make changes to your computer.
-
Click Continue . The installation wizard will begin downloading and installing Visual Studio.
-
Click to check the box next to Desktop development with C++ . More options will display in the right panel.
-
Click to check the box next to C++ Clang tools for Windows . You'll see this in the panel on the right side of the window under the header, "Installation details."
-
Click Install . Once the installation is complete, you'll have everything you need to use Clang on your Windows computer within Visual Studio. [1] X Research source
Expert Q&A
Tips
About This Article
1. Go to https://visualstudio.microsoft.com/vs/preview/
.
2. Click Download Preview
under "Community."
3. Open the downloaded file.
4. Click Continue
.
5. Click to check the box next to Desktop development with C++
.
6. Click to check the box next to C++ Clang tools for Windows
.
7. Click Install
.