News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Adding more than one "include" oder "lib" at the time.

Started by sunshine2012, July 12, 2012, 11:10:31 PM

Previous topic - Next topic

sunshine2012

I would like to add more than one include oder lib, e.g. for installing gtkmm, is there a possibility for this?

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

sunshine2012

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?

MortenMacFly

Quote from: 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?
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.

Quote from: sunshine2012 on July 16, 2012, 03:54:15 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

sunshine2012

#4
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.

MortenMacFly

Quote from: sunshine2012 on July 16, 2012, 05:45:25 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

sunshine2012

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.