Creating the Definition File (GNAT User’s Guide for Native Platforms)

#### 7.4.8.18 Creating the Definition File ¶

The definition file is the last file you need to build the DLL. It lists the exported symbols. As an example, the definition file for a DLL containing only package `API` above (where all the entities are exported with a `C` calling convention) is:

>     EXPORTS
>         count
>         factorial
>         finalize_api
>         initialize_api

If the `C` calling convention is missing from package `API`, the definition file contains the mangled Ada names of the above entities, which in this case are:

>     EXPORTS
>         api__count
>         api__factorial
>         api__finalize_api
>         api__initialize_api