EDIT:
Nevermind, it seems after searching this is a problem with my graphics card driver...
Intel Graphics Media Accelerator 3150
I will post if updating the driver fixes it.
EDIT2: My drivers are up to date...
I am however using Codeblocks mingw
I'm going to try reinstalling codeblocks....