Author Topic: Console Window Doesn't Appear  (Read 6289 times)

smguy

  • Guest
Console Window Doesn't Appear
« on: October 05, 2013, 10:36:59 pm »
Hello. I'm learning C for a class I'm taking, and I was recommended Code::Blocks for my compiler/development environment. I was following a long with a simple online tutorial to familiarize myself with the syntax, and it told me to run a very simple program:

Code
#include <stdio.h>
int main()
{
    printf( "I am alive!  Beware.\n" );
    getchar();
    return 0;
}

I created a new Console Application project for C, type in this code, hit Compile (which ran fine according to the log), then hit Run, and nothing happened. As far as I can tell, I was supposed to get a console window that would open and wait for me to hit Enter before closing again. However, I get nothing.

Any help would be appreciated, thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Console Window Doesn't Appear
« Reply #1 on: October 05, 2013, 11:14:01 pm »
Read this http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

And then inspect you build log.
Then search how to install a compiler, because you probably don't have one installed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]