Prof A Olowofoyeku (The African Chief) wrote:
Unfortunately, this problem is not only related to unit propagation. I have just tried to compile the Windows unit (that exports thousands of winapi routines, interfacing to the Mingw winapi libraries), and two of those routines are now rejected with the "attributes in forward declared routines are not allowed" error. There is no reason for those two routines to be singled out, and there is no USES problem here.
Probably these routines are declared `forward' or something like it. Generally, it applies when a routine is declared twice.
No, they are not declared "forward" - and they are not declared twice (I have done searches and greps just to verify that). I have since discovered however that it's not just those two (what happened was that the compiler stopped on the second error reported, instead of listing all the affected routines).
Somehow there must be two declarations, whether forward, interface, in different units etc.
If you can't find it out, please send me some example code ...
Frank