Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: HeReSY on March 28, 2012, 09:13:48 pm

Title: Another Question to Project dependencies
Post by: HeReSY on March 28, 2012, 09:13:48 pm
Hi there,

i know this question is ask very often, but i think i'm to stupid, or it doesn't work.

I have a workspace with two projects.
Project A is an executable and Project B is my shared library.

I set in the project dependencies the depencies so that my executable needs the library.
Project B depends on Project A.

But when i change some lines of code in my library and/or the executable, only the activated project is compiled.

I thought Project A should be always compiled when it is changed.

A relink of the executable and the libraray can be done through the build targets -> dependencies.

Can anyone point me in the right direction how to setup my workspace that it fits my need?

HeReSY

Oh, i forgot. I use Code::Blocks Nightly Build 7899 on xubuntu 11.10 from jens repository.
Title: Re: Another Question to Project dependencies
Post by: oBFusCATed on March 28, 2012, 09:20:17 pm
What are the names of the active targets for both projects?
If they are not the same the dependencies won't work.
Title: [SOLVED] Re: Another Question to Project dependencies
Post by: HeReSY on March 28, 2012, 10:18:12 pm
What are the names of the active targets for both projects?
If they are not the same the dependencies won't work.

Thanks, that was the only thing i missed.
Now i can move forward with my project.