Factsheet
What is MinGW, why there is a lot of compilers and why this is so confusing?
windows - How to compile C program on command line using MinGW? - Stack Overflow
How to do the mingw to code in c/c++
Is Mingw dead?
I am interested in learning to program in C++. I have noticed that it requires a compiler, but there are a lot of options available, which confuses me a little. I have heard about MinGW, but I find it difficult to determine which page to download it from, as there are several options such as winlibs, sourceforge, and mingw-w64.org, and I am not sure which one is the official one. Furthermore, once on the mingw-w64 page, I find that there are multiple versions such as Cygwin, LLVM-MinGW, w64devkit, MingW-W64-builds, MSYS2, and WinLibs.com, which further complicates my decision. I wonder why there isn't a standard official compiler to avoid this confusion and what exactly MinGW is, and how the available compilers such as GCC or Clang differ. I would appreciate any guidance on which one to choose and please excuse my lack of knowledge on the subject.
It indicates it couldn't find gcc.exe.
I have a path environment variable set to where MinGW is installed
Maybe you haven't set the path correctly?
echo %path%
does that include the path to gcc.exe? Otherwise, compilation is similar to Unix:
gcc filename.c -o filename
I've had this problem and couldn't find why it kept happening. The reason is simple: Once you have set up the environment paths, you have to close the CMD window, and open it again for it be aware of new environment paths.
Hello i'm on windows and I have been trying to code in c but i watched a YouTube saying I have to do the mingw process on sourceforge and it's been frustrating when I press next it just disappears can someone please help me I am very dedicated thanks
