Pascal Viandier wrote:
The schema of the cyclic dependencies I face is:
. Module A implementation section imports Module B . Module B implementation section imports Module A and Module C . Module C implementation section imports Module A and Module B (not Module C)
Please note the dependencies are in the implementation sections, not in the interfaces.
Although for each module the interface section is in a separate file included in the appropriate implementation file (i.e. A.pas includes A.h but no other file), I think this is not the cause of the problem. With this, gp says: cyclic interface dependency A.pas -> B.pas -> C.pas and it stops.
Oh yes, it's a bug, thanks for finding. Here's a patch (yes, it's a quick fix, but this code will change anyway ...). You need flex to rebuild, or get the archive from my web site which includes the flex generated file. This bug *might* also cause some spurious recompilations, so those who noticed any, you might want to try it as well. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8