Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sque on September 04, 2006, 04:11:42 pm

Title: Project depending on another project (library) does not relink?
Post by: sque on September 04, 2006, 04:11:42 pm
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

Is there a way to tell a project to relink objects instead of manually rebuilding the project B?
Title: Re: Project depending on another project (library) does not relink?
Post by: mandrav on September 04, 2006, 05:11:57 pm
Yes, add lib3dEngine_d.a as an external dependency of the Debug target in project B.
Title: Re: Project depending on another project (library) does not relink?
Post by: sque on September 04, 2006, 08:47:45 pm
 :mrgreen: