PDF download Download Article
A step-by-step guide on installing Clang for Windows
PDF download Download Article

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.

  1. Go to https://visualstudio.microsoft.com/vs/preview/. You can use any web browser to go to the Microsoft site and download Visual Studio.
  2. "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
  3. 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.
  4. The installation wizard will begin downloading and installing Visual Studio.
  5. More options will display in the right panel.
  6. You'll see this in the panel on the right side of the window under the header, "Installation details."
  7. Once the installation is complete, you'll have everything you need to use Clang on your Windows computer within Visual Studio.[1]
  8. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene has been writing and editing tech content at wikiHow since 2019. She previously worked for AppleCare, served as a writing tutor, volunteered in IT at an animal rescue, and taught as an adjunct professor for EN101 and EN102. Darlene has completed Coursera courses on technology, writing, and language. She holds both a BA (2011) and an MA (2012) from Rowan University in Writing, with a focus on workplace communication. With her extensive experience, academic background, and ongoing learning, Darlene has become the go-to grammar expert for her friends and family, as well as a skilled wordsmith for anyone in need. This article has been viewed 113,430 times.
How helpful is this?
Co-authors: 3
Updated: September 15, 2024
Views: 113,430
Categories: Programming
Article SummaryX

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.

Did this summary help you?

Thanks to all authors for creating a page that has been read 113,430 times.

Is this article up to date?

Advertisement