Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on August 09, 2010, 01:50:07 am

Title: I made one project depend on another , but ...
Post by: huzhongshan on August 09, 2010, 01:50:07 am
I use project->properties->building settings->project dependencies to make a project depend on b project.

when I made some changes in b project source files , I choose build a project the b project will not be build.

Does IDE check the dependencies changes when build the main project? if yes , hot to set this property in menu?
Title: Re: I made one project depend on another , but ...
Post by: oBFusCATed on August 09, 2010, 09:27:51 am
You have to setup an external dependency.

Project A should depend on the output (probably dll) of Project B.

You have to go to Project -> Properties -> Build options -> Dependencies -> External deps -> add the path to the file generated by project b
Title: Re: I made one project depend on another , but ...
Post by: huzhongshan on August 11, 2010, 01:56:03 am
 when I change source code in project b  and build the project a , can the project b  be build automatically?



Title: Re: I made one project depend on another , but ...
Post by: oBFusCATed on August 11, 2010, 09:36:34 am
Yes, it will, if you setup it correctly