Author Topic: Can't run code in Code::Blocks!  (Read 4030 times)

mdb

  • Guest
Can't run code in Code::Blocks!
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't run code in Code::Blocks!
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

mdb

  • Guest
Re: Can't run code in Code::Blocks!
« Reply #2 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.