I’m trying to compile TBX_D2010 on Delphi 2010. Compile fails with E2003 Undeclared identifier: ‘TTBPopupPositionRec’ in TBX.pas.
The weird thing is that TTBPopupPositionRec is declared in unit TB2Item. Even weirder is that I can edit TB2Item.pas, even delete the whole content and it still would fail with the same error, ignoring the errors introduced in TB2Item.pas, as if it would be using some other, different copy of TB2Item. However, removing TB2Item from uses of TBX.pas fails with a different error.
I’ve dir /s for TB2Item.* and found nothing suspicious, and deleted all TB2Item.dcu files.
What’s going on, why is Delphi ignoring my changes in TB2Item.pas?
Posting the answer so I can close this:
I removed all .bpl and .dcp files of the other package, recompiled, reinstalled the other package and the new one and everything worked.