We have several C projects in Eclipse, using CDT (CodeSourcery++).
There are two projects that build libraries for use in the "main" project that builds the final application.
Now we find that rebuilding one of the libraries does not cause the main project to be also rebuild. Obviously, there is no dependency in the makefile to cause this.
The libraries themselves are linked in properly, but the final build result does not depend on them.
How can we create this dependency?
You should use the CDT references page to specify the library configuration referenced by your main project.
Right click on Project > Properties > C/C++ General > Paths & Symbols > References
CDT will then ensure that the library project is built first, and will ensure that the main executable is re-linked when the dependent library changes.
In Main project properties, there is Project References. check on the dependent project. By this way firstly dependant project builds, after than main project building process starts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With