Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jiapei100 on January 07, 2010, 02:58:49 pm

Title: Code Blocks Search Directories only show up after a build?
Post by: jiapei100 on January 07, 2010, 02:58:49 pm

Hi,

Whenever I clicked project's name and then
build options->Compiler->Search directories

Nothing displayed.

I've got to "build" this project once again,
even thought nothing is actually "built" in this round,
(Namely:  In build log, it will show

Target is up to date.
Nothing to be done. )


I don't know whether this is a bug of Code Blocks.
But, in my personal opinion, it's better to show up Search directories
whenever I clicked on the project build options.
Building it once again to show up "search directories" is not the right way out.


Best Regards
JIA



Title: Re: Code Blocks Search Directories only show up after a build?
Post by: Jenna on January 07, 2010, 03:04:02 pm
It's the first time I heard of such an issue.

Can you provide a simple test-project where this happens ?

Which version of C::B and which OS (version) and wxWidgets (version) do you use ?
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: ollydbg on January 07, 2010, 03:06:30 pm
It woks fine here when I right click on the "codeblocks.cbp" context menu.
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: jiapei100 on January 07, 2010, 03:20:59 pm

I'm using
Ubuntu 9.10 + C::B 8.0.2 + wxWidgets 2.8.10.1-0ubuntu1






It's the first time I heard of such an issue.

Can you provide a simple test-project where this happens ?

Which version of C::B and which OS (version) and wxWidgets (version) do you use ?
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: stahta01 on January 07, 2010, 07:41:25 pm
Is this just the normal operation of "Build Options" not working while the user is building the project?

Tim S.
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: jiapei100 on January 07, 2010, 11:58:33 pm

I've got no idea what you are referring to.
But, I uploaded a video in .ogv format at
http://www.visionopen.com/rec.ogv

please find suitable codec to broadcast it.

Then, you will see what's happening in my C::B ...


Cheers
JIA Pei


Is this just the normal operation of "Build Options" not working while the user is building the project?

Tim S.
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: Jenna on January 08, 2010, 06:57:17 am
You can have build options for the whole project and for the targets.

If you open the build options the first time, the project is selected, which has no seacrh-directories set.
After first building the actual target is selected, which has search directories.

EDIT:
What I forgot to write:

The cause for that behaviour is, that the project is not active at the moment you open the build options the first time, so the projects build options are selected.
After a build the project is selected and you get the active targets build options shown as default (the same would happen if you activate the project before).
Title: Re: Code Blocks Search Directories only show up after a build?
Post by: jiapei100 on January 08, 2010, 07:26:40 am


Thanks, Jens:

That's the reason. Thanks very much.
Problem solved.

Cheers
JIA