> If a circular dependency existed, would a compiler catch it?
> I.e.
> mod A uses mod B
> mod B uses mod C
> mod C uses mod A
The compiler would not catch it, but mod A could never compile,
because B would not exist.
> I have a script that searches files containing source code, detects
> dependencies and then automatically generates the makefile. It has
> been working perfectly the last few months, but all of the sudden
> a problem has arrisen: make will compile the entire code every time
> on one machine, on another a group of files will recompile
> every time, even if the executable has just been 'made'.
> Although I haven't been able to find one I'm guessing that I have
> a circular dependency in my code, it's the only explanation I can
> think of.
Check the time-stamps on the files to see if they are being set
correctly.
-jack
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|