News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Can't run code in Code::Blocks!

Started by mdb, March 26, 2008, 06:18:45 PM

Previous topic - Next topic

mdb

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.

MortenMacFly

Quote from: mdb on March 26, 2008, 06:18:45 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mdb

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:
#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.