News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[C] Cannot get any program to give output or work whatsoever

Started by King_Pikmin, January 28, 2016, 07:47:33 PM

Previous topic - Next topic

King_Pikmin

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.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]