Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: skyplus on November 30, 2007, 04:49:43 am

Title: I always have to rebuild the whole workspace...
Post by: skyplus on November 30, 2007, 04:49:43 am
In my workspace I have two wxWidgets application projects and several static library projects which work for them.
But comes this problem:
assume they are    libA.cbp, libB.cbp, AppA.cbp and AppB.cbp in root.workspace.

When i have modified a cpp file in libA.cbp, then built it, it generated the new library file. After that, i shall build up a
new Appa.cbp which uses libA.a. But strangely, Appa seems to act like libA.a never changed, or only changed half of
my modification with libA! Even Rebuild Appa.

So, always I had to rebuild the whole workspace to get it right.

Why does this happen? Can setting denpendencies work out this problem?


my codeblocks is svn 4639. Thanks!
Title: Re: I always have to rebuild the whole workspace...
Post by: MortenMacFly on November 30, 2007, 07:36:02 am
Why does this happen? Can setting denpendencies work out this problem?
Sure you can - in project settings you can setup project dependencies - thus dependencies of different projects within a workspace. Additionally you can setup for each targets "binary" dependencies - thus the target will be re-compiled (linked) if e.g. an external library is newer. Search the WiKi for more information. It's very well explained there.
With regards, Morten.
Title: Re: I always have to rebuild the whole workspace...
Post by: skyplus on December 04, 2007, 07:15:57 am
Why does this happen? Can setting denpendencies work out this problem?
Sure you can - in project settings you can setup project dependencies - thus dependencies of different projects within a workspace. Additionally you can setup for each targets "binary" dependencies - thus the target will be re-compiled (linked) if e.g. an external library is newer. Search the WiKi for more information. It's very well explained there.
With regards, Morten.

Thanks! It is well working now :D