User forums > Using Code::Blocks
Project depending on another project (library) does not relink?
(1/1)
sque:
There is a scenario with 2 projects on the same workspace
* Project A: a static library
* Project B: an application that links with project a library
I have set dependancy of Project B on Project A.
I have set Project B as active target and I make a change on Project A. When I press the build, The project A builds and the project B doesn't relink with the new library created by project A.
like this:
--- Code: ----------------- Build: Debug in 3dEngine ---------------
Compiling: ../../aacrenderer.cpp
Linking static library: ../../objects/lib3dEngine_d.a
-------------- Build: Debug in final_ergasia ---------------
Target is up to date.
Process terminated with status 0 (0 minutes, 5 seconds)
0 errors, 0 warnings
--- End code ---
Is there a way to tell a project to relink objects instead of manually rebuilding the project B?
mandrav:
Yes, add lib3dEngine_d.a as an external dependency of the Debug target in project B.
sque:
:mrgreen:
Navigation
[0] Message Index
Go to full version