[prev] [prev-tail] [tail] [up]

### 10.5 Libraries

Free Pascal supports making of dynamic libraries (DLLs under Win32 and O S/2) trough the use of the Library keyword.

A Library is just like a unit or a program:

_________________________________________________________________________________________________________ Libraries
___________________________________________________________________

By default, functions and procedures that are declared and implemented in library are not available to a programmer that wishes to use this library.

In order to make functions or procedures available from the library, they must be exported in an export clause:

_________________________________________________________________________________________________________ Exports clause
___________________________________________________________________

Under Win32, an index clause can be added to an exports entry. an index entry must be a positive number larger or equal than 1.

Optionally, an exports entry can have a name specifier. If present, the name specifier gives the exact name (case sensitive) of the function in the library.

If neither of these constructs is present, the functions or procedures are exported with the exact names as specified in the exports clause.

[prev] [prev-tail] [front] [up]