Hi ElKooder,
if you want to compile a single file you could do the following steps:
1. Go to the menu Tools->Configure tools
2. Add a tool:
e.g.
name: mygcc
executable: gcc
parameters: ${ACTIVE_EDITOR_FILENAME} -Wl,-lgraph
3. choose the option: launch tool hidden with standard output redirected
4. Open a simple c/c++ file and execute Tools->mygcc
The build process information is displayed in the logs & others pane in the tab Code::Blocks.
That's it.
Bye,
Mario