Author Topic: Help me start with Codeblocks.  (Read 3055 times)

towry

  • Guest
Help me start with Codeblocks.
« on: August 02, 2011, 09:21:53 am »
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 ?

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: Help me start with Codeblocks.
« Reply #1 on: August 02, 2011, 08:51:02 pm »
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)