Author Topic: Linker settings (newbie question)  (Read 3323 times)

Offline ElKooder

  • Single posting newcomer
  • *
  • Posts: 3
Linker settings (newbie question)
« on: January 21, 2009, 02:17:09 pm »
Hi Im running CB from Kubuntu, im trying to add the linker option -lgraph when compiling but I don't know how to do it without creating a project.
I usually work with single cpp files doing exercises and not with projects, how can I do it?

Thx in advance.
« Last Edit: January 21, 2009, 02:59:38 pm by ElKooder »

Offline ElKooder

  • Single posting newcomer
  • *
  • Posts: 3
Re: Linker settings (newbie question)
« Reply #1 on: January 23, 2009, 07:36:50 pm »
Please a yes or no will do =)

mariocup

  • Guest
Re: Linker settings (newbie question)
« Reply #2 on: January 23, 2009, 10:58:48 pm »
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

Offline ElKooder

  • Single posting newcomer
  • *
  • Posts: 3
Re: Linker settings (newbie question)
« Reply #3 on: January 24, 2009, 01:25:17 am »
Thanks for your reply Mario!