r/C_Programming • u/ZulfiqarShadow • Sep 05 '26
Discussion Setting up c on windows.
Can somebosy walk me tru setting up c and clangd on windows ice tried for a day or 2 but cant get it right with kate,some help whuld be really apreciated.
0
Upvotes
5
u/TheOtherBorgCube Sep 05 '26
https://www.codeblocks.org/downloads/binaries/
Grab
codeblocks-25.03mingw-setup.exe(or whatever the latest x.y version of that file is). This includes the IDE and the compiler.The default compiler is gcc (because mingw), but you can install other toolchains later if you wanted to.
It's a bit like VS, but you'll be up and running in minutes instead of hours, and without having to promise your first born to M$.
4
u/EpochVanquisher Sep 05 '26
Have you tried installing Visual Studio? This is the fastest way.
1
u/SignedInt32 Sep 07 '26
Just a question, why windows? (Linux offers all this by default) also someone is trying super hard to downvote you, very childish.
1
u/veloxVolpes Sep 05 '26
Code::blocks sounds like the right solution if your system is old, but if I were to recommend something to anyone searching for this info I'd give them this advice: If possible use Linux, it's really easy to compile and test Windows binaries on linux. If that isn't an option, treat WSL as your development environment, download all the tools you need in there, even your Windows compilers (mingw32-gcc). per my personal experience it's much simpler this way instead of using Msys2, or any of the Windows MinGW options (if you're setting it up yourself)
1
u/thisismyredaccount Sep 05 '26
Eclipse has a c/c++ distrubution that includes everything you need out of the box. It's actually a pretty great IDE for c, the debugger is fantastic.
If you want to use command line the easieat setup I know installing llvm from their website, they setup enviroment paths and all the unintuitive stuff you don't know about when you are new.
I recommend eclipse because the debugger interface will help you a lot while learning.
1
u/UnpaidCommenter Sep 05 '26
Check out Msys2.org. It lets you use the same GCC and Clang tools used on Linux.
1
u/septum-funk Sep 08 '26
eventually, look into how to use msys if you want to continue doing C dev work on windows. you're going to want that for C, using VS is bad advice for C as MSVC is a C++ compiler and only supports the C features necessary for C++
-1
u/Traveling-Techie Sep 05 '26
I prefer installing the tools from Cygnus.com, which has gcc, make, and shell tools (3 separate installations). It’s my first step on any new Windows system.