Author Topic: [C] Cannot get any program to give output or work whatsoever  (Read 2563 times)

Offline King_Pikmin

  • Single posting newcomer
  • *
  • Posts: 5
[C] Cannot get any program to give output or work whatsoever
« on: January 28, 2016, 07:47:33 pm »
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:

Code
#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello world!\n");
    return 0;
}

Edit: I'm running Windows 7 64-bit.
« Last Edit: January 28, 2016, 08:07:14 pm by King_Pikmin »

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline King_Pikmin

  • Single posting newcomer
  • *
  • Posts: 5