Name

$ObjExportAll Compiler Directive

Syntax

{$ObjExportAll Off} // default
{$ObjExportAll On}

Scope

File

Description

The $ObjExportAll compiler directive tells C++ Builder to export all symbols when compiling the unit as an .obj file. You might want to use this directive when using a Pascal unit in a C++ DLL or package to avoid creating a .def file.

See Also

Exports Keyword

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.