How to install C/C++ on Windows 11
C Compiler Suggestions for Windows 11?
c++ - C++11 compiler for windows - Stack Overflow
Easiest way to set up C compiler on Windows 10 (if you use Visual Studio Code)?
Videos
I have come across many sources and Youtube vids on how to install C on Windows, but each of them varies wayy too much. So I wanted to know if there are any sources according to u that are reliable and easy to install and dont go about it on such a roundabout way. I'm a beginner to programming so please make it to understand.Any vids on installation are also welcome
I'm new to Windows 11, coming from years of living in Ubuntu based distros.
I'm presently making my way through Python and Web Dev courses, but I have some old background in C and would like to refresh some of that too. I'm watching the CS50 course videos on YouTube, as well.
Can somebody suggest what they feel my best option for a Windows 11 C compiler are?
If someone is able to point me in the right direction to get the CS50 C library working on Windows, that would be great too.
Thanks in advance.
Nearly all C++11 features are implemented in the GCC 4.6.x . A good place to get latest GCC builds (MinGW) is the TDM website - http://tdm-gcc.tdragon.net/download . It should be easy to replace your current GCC with TDM GCC by overwriting files...
A special version of MinGW:
MinGW-Builds gives you everything gcc offers (currently 4.7.2)
That is: Including support for std::thread, std::async, std::future and friends.
As far as I know that's by far the most complete C++11 you can get on Windows.
You just get the MinGW-build binaries here. Unlike other gcc-based installations it supports posix threads, which are currently key to getting the gcc support for C++11 threads and friends working on Windows.
Extract the directory mingw to any location and add the following two paths to your PATH environment variable: (well, change F:\coding ...)
F:\coding\MinGW\bin
F:\coding\MinGW\msys\1.0\bin
Add both, separated by semi colon. You will need to log out or reboot. To verify that you got it right, you can open a command prompt, and write
g++ --version
You should get a response like this, mentioning MinGW-builds:
g++ (Built by MinGW-builds project) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc. ...
I wrote a more complete instruction for getting this going with Eclipse, here: http://scrupulousabstractions.tumblr.com/post/36441490955/eclipse-mingw-builds