User forums > General (but related to Code::Blocks)

Dependencies donot work properly

(1/1)

huzhongshan:
In my workspace , there are 2 project: A.cbp B.cbp , I add A.cbp as dependencies of b.cbp in properties->build targets->dependencies , but It doesnot work.

I manually add the <Depends filename='.....' /> </project> in workspace file , it works.

Is there something wrong?

Jenna:
Ib B depends on A, it means A has to be build before B.
It does not mean that B is rebuild (or relinked) if A has been updated.
To cover the second case also, you have to set the dependency on an external file in "Properties -> Build targets -> Dependencies".

huzhongshan:
I add a.cbp use properties->build targets->dependencies , it seems not work.
I manually add the <Depends filename='.....' /> </project> in workspace file , it works.



oBFusCATed:
Reread carefully the Jens' post, he has answered you...

huzhongshan:
I found the answer , I should add the a.cbp in project dependencies , not in  properties->build targets->dependencies , [should use the button in bottom of the property sheet].

Navigation

[0] Message Index

Go to full version