News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Console Window Doesn't Appear

Started by smguy, October 05, 2013, 10:36:59 PM

Previous topic - Next topic

smguy

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:


#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!

oBFusCATed

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!]