Hello,
I have a unit that "A" defines a class "TDirSizeForm" and a standalone procedure "CreateNewDirSizeForm" in its "interface" section.
I have a second unit "B" that "uses" the unit "A" and calls the standalone procedure "CreateNewDirSizeForm" in a method of a class defined in unit "B". This code compiles without errors or warnings on Windows, but fails to compile on MacOS (error "Identifier not found"). The strange thing is that I can create an instance of the class "TDirSizeForm" defined in unit "A" without a problem in the same method of unit "B" in which the call to the procedure "CreateNewDirSizeForm" causes the compiler error.
Any idea why I cannot compile the code on MacOS?
The environment is Lazarus 2.0.10 both on Windows (8.1) and MacOS Catalina. I am using "{$mode objfpc}" in both units.
Thanks for your help, Olaf
[Edited title to add SOLVED]