Delphi Error – E2276 Identifier ‘%s’ cannot be exported

Delphi Compiler Error

E2276 Identifier ‘%s’ cannot be exported

Reason for the Error & Solution

This message indicates that you are trying to export a function or procedure that is tagged with the local directive. You also, cannot export threadvars and you would receive this message if you try to do so.