Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mdb on March 26, 2008, 06:18:45 pm

Title: Can't run code in Code::Blocks!
Post by: mdb on March 26, 2008, 06:18:45 pm
Hi,

I wrote a code and wanted to run it but every time i click Build, Run, or Build and run nothing happens! Please tell me what I am doing wrong?

Thanks.
Title: Re: Can't run code in Code::Blocks!
Post by: MortenMacFly on March 26, 2008, 07:36:31 pm
Please tell me what I am doing wrong?
Start by telling exactly what code you wrote where -> pre/post build steps? Batch file? C::B scripting? Platform? We can't read your mind though.
Title: Re: Can't run code in Code::Blocks!
Post by: mdb on March 26, 2008, 08:21:04 pm
Thank you MortenMacFly for the reply. I am new to C++ so I didn't understand much of what you said!

What I did is that I ran Code::Blocks then created a new empty file. After that I wrote a C code like this:
Code
#include <stdio.h>

void main(){
 printf("test");
}

Now I want to run the code and I think what I should get is a screen with the word test on it. But I don't know how!
Please help.