I have my own general purpose unit with functions and procedures I often use. There are also some routines that operate on TStringGrid types so I had to add GRIDS to the uses clause in the interface part of this unit. If I now write a very simple "Hello World" program that uses just one simple function from my unit I get errors

Error: Undefined symbol: WSRegisterCustomImageList
Error: Undefined symbol: WSRegisterMenuItem
etc.

at the end of my program. After a long searching I found out that I had to add INTERFACES to the uses clause of my program. My questions:

How should anybody know that this is required in this situation?
Why is the INTERFACES unit not required in the unit itself?


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to