7.2.1 Exporting functions

When exporting functions from a library, there are 2 things you must take in account:

  1. Calling conventions.
  2. Naming scheme.

The calling conventions are controlled by the modiers cdecl, popstack, pascal, safecall, stdcall and register. See section 6.3, page 350 for more information on the dierent kinds of calling scheme.

The naming conventions can be controlled by 2 modiers in the case of static libraries:

For more information on how these dierent modiers change the name mangling of the routine section 6.2, page 341.

Remark: If in your unit, you use functions that are in other units, or system functions, then the C program will need to link in the object les from these units too.