Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: fubo on July 21, 2010, 12:01:36 pm

Title: File dependency in a project
Post by: fubo on July 21, 2010, 12:01:36 pm
Hi all,

I have a workspace with two projects, A and B. A generates (through a post build command) a binary file, A.bin. I need B (mainly a .s file of B) to be dependent on A.bin. I tried using dependencies into "Properties->Build targets->Dependencies", adding A.bin to "External dependency files", but it does not work (B is not regenerated).

What does "Additional output files" stand for?
Title: Re: File dependency in a project
Post by: oBFusCATed on July 21, 2010, 12:28:20 pm
Have you tried to setup the project dependencies (Project -> Properties -> Dependencies)?
B should be dependent on A.
Title: Re: File dependency in a project
Post by: fubo on July 21, 2010, 12:55:28 pm
Yes and it does not work.
Title: Re: File dependency in a project
Post by: oBFusCATed on July 21, 2010, 01:33:48 pm
Can you provide a simple test project?
Title: Re: File dependency in a project
Post by: fubo on July 21, 2010, 01:44:09 pm
My project is based on ARM RVCT, so there is a custom toolchain configuration.

But I solved the issue in my project in a tricky way...
Title: Re: File dependency in a project
Post by: oBFusCATed on July 21, 2010, 02:00:44 pm
Can you try reproduce the problem with the x86 gcc?