Peter Bismuti wrote:
>
> 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
>
> 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.
>
according to my experience with Sun and Cray f90, compilers always
detect circular dependancies (because it results in multiples
declarations of objects)
--
-----------------------------------------------------------------------
Pierre Hugonnet, PhD Student (Geophysics) |phone: 33- 5 59 83 57 94
ELF Exploration Production, PAU (FRANCE) |fax : 33- 5 59 83 48 58
Geological and Geophysical Research Div. |mailto:[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|