News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Project A and B dependency headache

Started by grunerite, November 21, 2006, 04:23:00 AM

Previous topic - Next topic

grunerite

Hello fellow Code::Blockers,

XP SP2
svn build rev 3222, Nov. 15, wx2.6.3(Windows, unicode)


I have a workspace with ProjectA and ProjectB, both building static libs. ProjectB is set to be dependent on ProjectA through the project dependencies setting.

I make ProjectB the active project and hit build. It builds ProjectA, then ProjectB.  Perfect.

Then, without doing anything except breathing, I hit Build again.  It builds ProjectA, then says ProjectB is up-to-date.

This behavior does not sound correct to me. Does this happen to anyone else?

It seems to me it should not build ProjectA the 2nd time I hit build, as there is no need to build it. If this does not happen to anyone else, then I'll investigate what I'm doing wrong further, but I just can't find anything wrong with  what I'm doing right now.

Thanks,
grunerite

Pecan

Make sure that your system clock is set correctly.

Then make sure that there is no source file that has a date/time set ahead of the clock. Either touch all files, or add a space at the end of each source file.

Build clean, then re-build to see what happens.

MortenMacFly

Another possibility (happened to me once, too :oops:) is that you might create object files of the same name of both projects into one object directory, overwriting a previous one.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]