Apr 18, 2013 at 3:27am UTC
Hello everyone. I usually used Cygwin to do my compiling for c/c++ programs, but I want to get into gui programming and need MinGW for it. I did download it, but when I try to go compile any programs, it gives me an ".exe has stopped running, windows checking for solution to problem" or something similar to that. How can I get it to work properly?
Last edited on
Apr 18, 2013 at 4:54am UTC
Apr 18, 2013 at 3:50am UTC
MinGW will run my c codes with no problem, but the c++ codes will not compile.
Apr 18, 2013 at 4:21am UTC
I got this to work in Code::Blocks. It was this statement within the linker settings that I needed to add: -static-libgcc -static-libstdc++
But it still kind of bothers me; how do you get it to work for MinGW?
Apr 18, 2013 at 4:23am UTC
Just answered my own question. Just got to add that as an argument within the command line. If there is an easier way please write it down below.
Apr 18, 2013 at 4:58am UTC
did u change anything when installing the C::B? it works fine for me, all i did was just click install next finish. try to look around the C::B wiki, there should be something there.
Apr 18, 2013 at 5:54am UTC
I was able to find a way to fix it online for C::B
Apr 18, 2013 at 9:53am UTC
However you don't really need to static link c++ libraries. You need only to be sure that DLLs needed are placed in the same directory where executable file is placed.
Try to figure how to set up correctly all things (for example adding PATHs and system vars)
Note: I am used to work directly with Mingw gcc from command line (or creating Makefiles or using qmake projects). I never use IDEs, so I probably could miss something