I installed CodeBlocks and the needed MinGW files. I made a new C console application, the default sample 'hello world' application. I build and run it without any errors, but an empty console will open up and nothing will ever be printed to it. Even if I close the program, the instance is still running and I have to kill it in task manager under 'processes'. I've restarted my computer, uninstalled and reinstalled CodeBlocks, but the same problem persists. Here is my code, it's the default code that was created when I made a new project:
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
Edit: I'm running Windows 7 64-bit.