Code::Blocks Forums

User forums => Embedded development => Topic started by: artaban on November 01, 2007, 04:33:04 pm

Title: about c/c++ parser
Post by: artaban on November 01, 2007, 04:33:04 pm
hello,

I was wondering why the 'C/C++ parser directory (project->properties)' doesnt contains by default :
Codeblocks\include

I think it is really helpful but anoying to add this directory each time.
(and it is impossible to do that when working without a project)

Could it be possible to add some options in c++ parser page (settings->editor->code compl..) :
[  ] Always parse Codeblocks/include directory
[  ] Always parse current directory (even without a project)


Sorry for my weak english.
thanks
Title: Re: about c/c++ parser
Post by: MortenMacFly on November 02, 2007, 08:42:28 am
I was wondering why the 'C/C++ parser directory (project->properties)' doesnt contains by default :
Codeblocks\include
That's very simple: Because a lot people don't have the include folder directly under CodeBlocks. This includes me and I personally don't want to do the IDE some magic stuff behind the backs that might cause my compilation process to fail for obscure reason. Part of setting up a project should always be setting up compiler/linker directories and (in the case of C::B) the CC directories, too.
To automise the process you can setup a script that does that for all of your projects if you like.
With regards, Morten.
Title: Re: about c/c++ parser
Post by: artaban on November 02, 2007, 05:09:59 pm
I agree to your point of view.
but i dont think this is scriptable ...