Peter N Lewis wrote:
Ok, the problem is that there is no interface name determined for the "MainSrc" unit. This patch:
--- gp.pas (revision 373) +++ gp.pas (working copy) @@ -1330,7 +1330,7 @@ DoApplyAutoUses := True; pp := @Deps; while pp^ <> nil do pp := @pp^^.Next;
pp^ := NewDep (MainSrc, '', fk_Program, True);
pp^ := NewDep (MainSrc, LoCaseStr (NameFromPath (MainSrc)),
fk_Program, True); DepToDo := pp^ end else
Should resolve it. It just uses the interface name as the lowercase of the basename of the MainSrc. The InterfaceName is not needed for compiling the main program, which is why this has gone unnoticed. I'm not sure if this InterfaceName determination is correct for modules.
I don't think so. Did you test it with a module that has a different interface name than its file name?
Frank