News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Help me start with Codeblocks.

Started by towry, August 02, 2011, 09:21:53 AM

Previous topic - Next topic

towry

Hi,I'm new to here and new to Codeblcks.I don't know how to use it.
I first use it i test the Helloworld.
but when i click the build&run,it didn't work,just like nothing happened.
My English is not good , so....
Can you tell me how to build a helloworld program and run it ?

Freem

Sure.

Go in File menu, then new project.
In the window appearing, select the console program.
Then, go in the Build Menu and click on Run.

It can happen you just see a window which quickly disappear.
In this case, right clic on your project, go into properties, then build targets, select "pause when execution ends" for the target you are compiling.

To know what target you are compiling, go into build, select target.

I explained to make a hello world running in console mode, because any other mode will require you to have setup the library you wan't to use, so it's a bit more difficult in C::B's config. (just a bit, but in many cases it's straightforward)