Author Topic: Adding more than one "include" oder "lib" at the time.  (Read 4179 times)

Offline sunshine2012

  • Single posting newcomer
  • *
  • Posts: 4
Adding more than one "include" oder "lib" at the time.
« on: July 12, 2012, 11:10:31 pm »
I would like to add more than one include oder lib, e.g. for installing gtkmm, is there a possibility for this?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Adding more than one "include" oder "lib" at the time.
« Reply #1 on: July 13, 2012, 09:54:13 am »
Sure, you can add as many as you like / need in the project's build options.

Project -> Build options -> [Project level / target level] -> tab "Search directory" -> tab "Compiler".
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

Offline sunshine2012

  • Single posting newcomer
  • *
  • Posts: 4
Re: Adding more than one "include" oder "lib" at the time.
« Reply #2 on: July 16, 2012, 03:54:15 pm »
Ok, but as I understand, there could be added only one line simultaneously.
Additionally this only works for current project, doesn't it?

Is there a possibility to add more than one line simultaneously?

I would like to use GTKmm within Codeblocks, so that everytime a new project is created,
the libraries are automatically included.

I think I have to tell Codeblocks under Settings/Comiler and Debugger/Search directories
and then  under compiler the includefiles and under linker the libs.

Is that correct?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Adding more than one "include" oder "lib" at the time.
« Reply #3 on: July 16, 2012, 04:13:26 pm »
Ok, but as I understand, there could be added only one line simultaneously.
Additionally this only works for current project, doesn't it?
You can make a template out of your fully configured project (once it is) and then use the template for new (GTK based / similar) projects. That's what templates are fore.

I think I have to tell Codeblocks under Settings/Comiler and Debugger/Search directories
and then  under compiler the includefiles and under linker the libs.
Is that correct?
If you only develop for GTK, this maybe a (kind of lazy) solution.
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

Offline sunshine2012

  • Single posting newcomer
  • *
  • Posts: 4
Re: Adding more than one "include" oder "lib" at the time.
« Reply #4 on: July 16, 2012, 05:45:25 pm »
Quote from: MortenMacFly

If you only develop for GTK, this maybe a (kind of lazy) solution.
Yes, I am a beginner and would like to gain some experience with gui-programming, for this case gtkmm seems the best choice, as it is
quite "natural" and logical.

Qt should be the best gui, but I think it is not for beginners.
« Last Edit: July 16, 2012, 05:48:20 pm by sunshine2012 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Adding more than one "include" oder "lib" at the time.
« Reply #5 on: July 16, 2012, 06:14:26 pm »
Yes, I am a beginner and would like to gain some experience with gui-programming, for this case gtkmm seems the best choice, as it is
quite "natural" and logical.

Qt should be the best gui, but I think it is not for beginners.
What about wxWidgets? In the end Code::Blocks offers full wx integration and a GUI builder of it and is based on wxWidgets, too. Strange you pick anther framework... ???
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

Offline sunshine2012

  • Single posting newcomer
  • *
  • Posts: 4
Re: Adding more than one "include" oder "lib" at the time.
« Reply #6 on: July 16, 2012, 11:29:27 pm »
Quote from: MortenMacFly
What about wxWidgets? In the end Code::Blocks offers full wx integration and a GUI builder of it and is based on wxWidgets, too. Strange you pick anther framework... ???
wxWidgets was actually my first choice, but then I looked to the code of some examples and I got the opinion that the code of
gtkmm ist much more easier to understand for beginnners.