Code::Blocks Forums

User forums => Help => Topic started by: smguy on October 05, 2013, 10:36:59 pm

Title: Console Window Doesn't Appear
Post by: smguy 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!
Title: Re: Console Window Doesn't Appear
Post by: oBFusCATed 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.