Linked Questions
209 questions linked to/from How can I install MinGW-w64 and MSYS2?
1
vote
0
answers
88
views
Troubles installing Mingw bin folder [duplicate]
I am trying to use Mingw to get a c++ compiler and debugger in VS Code. I am following this popular tutorial: https://code.visualstudio.com/docs/cpp/config-mingw
My problem is when I download and ...
33
votes
3
answers
26k
views
How do I use SDL2 in my programs correctly?
I want to make a game using SDL2, but I'm unable to compile and/or run my code, please help!
SDL2 is notoriously hard to set up, and it's often the first library aspiring game developers try to use.
...
23
votes
7
answers
65k
views
Installing the latest version of mingw-w64 on Windows
I am desperately trying to install the latest version of mingw-w64 to get acess to gcc 10 on windows 10.
I used the online installer for mingw-w64 in the past, but it is still stuck in 2018 on 8.1.0 ...
22
votes
7
answers
296k
views
'g++' is not recognized as an internal or external command, operable program or batch file
#include<iostream>
using namespace std;
int main()
{
cout<<"hi"<<endl;
return 0;
}
I am using Sublime text 3, and I am getting this error:
error-
'g++' is not ...
33
votes
1
answer
22k
views
What are MSYS2 environments? How do I pick one?
MSYS2 is said to have different environments.
What are they? How do I choose which one to use? What's the difference between MINGW64 and UCRT64?
(This Q&A is intended as a canonical duplicate on ...
8
votes
4
answers
16k
views
MinGW-w64 installation fails with 'ERROR res' in windows 10
The latest online installer (mingw-w64-install.exe from SourceForge) fails with 'Error res' message in the middle of installation. About several students out of 50 in my class were not able to install ...
6
votes
4
answers
34k
views
Missing libgcc_s_seh-1.dll starting the .exe on Windows
Intro
I have a CMake-based C++ project. Until now I build and ran the project via CLion. Everything worked fine until I tried to run the .exe-file directly (not via CLion).
Problem
When I navigate to ...
2
votes
4
answers
14k
views
How to compile code with a Makefile in Windows command prompt using MinGW compiler?
I am trying to compile some code that was provided to me using a makefile that was also provided to me. I use MinGW for my compiler on Windows 10.
I have very little experience with makefiles and ...
4
votes
5
answers
21k
views
How to install MinGW64 (non of the approaches work)
I am trying to install MinGW64 on Windows 10. Here is what I tried:
Approach 1
Via http://mingw-w64.org/doku.php
I went to http://mingw-w64.org/doku.php/download/win-builds and from there to http://...
5
votes
2
answers
24k
views
Compiler to C++20 on Windows
I need a compiler that supports c++20, like GCC 10.1 (used on linux), but to use it in my Windows 10.
I saw posts that recommend Mingw-w64, but does it supports c++20?
1
vote
2
answers
12k
views
Error - 'for' loop initial declarations are only allowed in C99 or C11 mode
[Error] 'for' loop initial declarations are only allowed in C99 or C11 mode
[Note] use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
I'm giving the above problem's solution,...
5
votes
1
answer
2k
views
Why doesn't my compiler recognize #include <thread> (c++)?
I wrote this as a simplified version of a multithreading example to get a feel for it, but am running into some issues when compiling. My compiler says that thread is not a member of std and prompts ...
3
votes
1
answer
13k
views
ERROR: During startup program exited with code 0xc0000135
VSCode is displaying the error message
ERROR: During startup program exited with code 0xc0000135.
When I try to debug the code. Initially MinGW installation was showing the error missing dll files, ...
4
votes
1
answer
7k
views
How to build and debug a c++ executable using Bazel on windows 10 x64
I want to debug a c++ code using the generated executable with bazel, but for some reason, the bazel don't build the code on x64 architecture or the executable does not work on debug mode.
My files ...
1
vote
2
answers
12k
views
Can't build and run in C++ Codeblocks
So I just recently downloaded a C++ IDE called Code::Blocks and made a new project. But when I tried to Build and Run it, the code gave some errors. I know that it isn't a problem with syntax or ...