News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

project dependencies dont seem to work

Started by Krox, January 28, 2012, 05:00:03 PM

Previous topic - Next topic

Krox

I am currently developing a compiler. So for testing I have a second project, which is compiled with it. Now obviously, it depends on the first compiler-project. But just checking the box in "project's dependencies..." doesn't seem to have an effect at all. Changing the compiler source, and then compiling the testing-project doenst trigger a new compilation of the compiler. What am I missing here? Some clues would be much appreciated.

stahta01

#1
I am guessing you tried project dependencies; it only does build order effect.

Try looking up "external dependencies" on CB and see if that helps.

The version number of Code::Blocks being used matters in this question.

Quote from: jens on February 23, 2011, 11:49:18 AM
Additional you can ... add an external dependency for the relevant targets of your app in "Properties -> Build targets -> Dependencies -> External dependency files" to the appropriate library.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Krox

Well, that explains why it doesn't work.

I tried the "external dependencies": This only re-links the project when the depency changes, it doesnt re-compile the source. Furthermore, when building the dependant, it doesn't trigger compilation (when needed) of the dependency. Which seem logical, cause with "external depency" C::B doesn't know, the file (in this case the compiler-binary), origins from another project in the same workspace. So this isn't what I I would like to have. Thanks anyway.

For the time being, the problem isn't critical, as I have only two projects. Just was wondering, how the "project's depencies" work in C::B.

My C::B version is 10.05 (ubuntu repository).