I'm writing a simple roguelike, and I was compiling statically to test, but I found that the program a) crashes when input is given, and b) does not seem to randomize at all when I compiled with MinGW. I switched over to Cygwin to check it out, and found that the statically-compiled version with Cygwin performed exactly as expected. I used the same commands for both: g++ -c FILE_NAME -std=c++14 -lncurses
for each source file, then g++ -static -o dngn OBJECTS -std=c++14 -lncurses
to link the final build.
The MinGW build: mingw.png
The Cygwin build: cygwin.png
Both images are screengrabs of it running with the respective compiler