I am running Code::Blocks version Code::Blocks 13.12 on Windows 8.1
When I try to build and run any program I don't get any errors 
the build log says 
mingw32-g++.exe   -c C:\Users\username\Documents\C++\test.cpp -o C:\Users\username\Documents\C++\test.o
mingw32-g++.exe  -o C:\Users\username\Documents\C++\test.exe C:\Users\username\Documents\C++\test.o   
Process terminated with status 0 (0 minute(s), 2 second(s))
0 error(s), 0 warning(s) (0 minute(s), 2 second(s))
 
Checking for existence: C:\Users\username\Documents\C++\test.exe
Then it says "It seems that this file has not been built yet. Do you want to build it now?"
when I press yes I get the same thing in the build log but no .exe. 
in the folder view I can see that the .exe is created but then disappears immediately. 
Please help.