Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sunshine2012 on July 12, 2012, 11:10:31 pm

Title: Adding more than one "include" oder "lib" at the time.
Post by: sunshine2012 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?
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: MortenMacFly 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".
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: sunshine2012 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?
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: MortenMacFly 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.
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: sunshine2012 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.
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: MortenMacFly 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... ???
Title: Re: Adding more than one "include" oder "lib" at the time.
Post by: sunshine2012 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.