DEV Community

Raphaël T
Raphaël T

Posted on • Edited on

Setting Up C Development Environment on Windows

Installation process using 2 package manager, Microsoft default called Winget and Scoop. Meanwhile you can still download dependencies from originals sources.

I've Been testing it in Visual Studio Code even VSCodium and Helix.

Download http://scoop.sh/:

  • In Powershell Terminal (lastest version recommended)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Enter fullscreen mode Exit fullscreen mode

2 options available below

First option programming without CMake

winget install LLVM.LLVM Microsoft.VisualStudio.BuildTools
Enter fullscreen mode Exit fullscreen mode

Second optin programming with CMake

  1. Toolchain installation
winget install LLVM.LLVM Kitware.CMake Ninja-build.Ninja Microsoft.VisualStudio.BuildTools
Enter fullscreen mode Exit fullscreen mode
  1. C/C++ VCPKG Package Management:
scoop bucket add main
scoop install main/vcpkg
Enter fullscreen mode Exit fullscreen mode

Adding LLVM Bin in "PATH"

Open : Windows settings (Windows + i)

  • Search for "environement variable"
  • On System Variable > Path -> Add : C:\Program Files\LLVM\bin

Checking if programs corectly installed

clang --version
cmake --version
vcpkg --version
ninja --version

To get started you can refer to my template repository:

Download C libraries :

Open : Visual Studio Installer

  • Modify > Desktop C++
  • Select : Clang for Windows
  • Press download button

Enable CMake And VCPKG

Open : Visual Studio Installer

  • Select : Tools for CMake
  • Select : Package manager VCPKG
  • Press download button

Top comments (0)