How to Set Up a Development Environment for C on Windows 11?

0
10
Asked By CodeCrafter42 On

I've been programming on Linux for a while but decided to switch to Windows 11 for various reasons. As I'm getting back into programming and want to focus on C, I'm finding it quite confusing to set up a proper development environment here. I'm hoping to use the Zed text editor for my coding. Can anyone share the best methods or tools to set up a C development environment on Windows 11?

5 Answers

Answered By CygwinExplorer On

I've been using Cygwin on Windows for ages. It does what I need, including running an X server. WSL is an option, but Cygwin has served me well.

Answered By DockerDabbler On

Have you thought about using a Docker development container in VS Code? It can simplify dependencies and environment setup.

Answered By TechieTinker On

A great option is to use Windows Subsystem for Linux (WSL). It allows you to run a Linux environment directly on Windows, and you can install tools like gcc easily.

DevGuru93 -

I find WSL super handy too! I have an Ansible script that helps me set it up from scratch whenever I need to rebuild my environment.

ZedFan88 -

WSL is solid, but I've had trouble with Zed freezing up sometimes, even with WSLg set up. That part can be tricky!

Answered By BuildMaster007 On

To set up your environment, try these steps: 1. Install the Microsoft C/C++ SDK using `winget install --interactive --id Microsoft.VisualStudio.2026.BuildTools`. 2. Get CMake with `winget install --id Kitware.CMake`. 3. Create a cmakelists.txt file for your project. 4. Use CMake to build your project.

Answered By LinuxLover123 On

Why not start with WSL or a virtual machine with your preferred Linux distro? It gives you a more familiar environment which can help if you're coming from Linux!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.