Next: , Up: Using gnatdll


G.11.7.1 gnatdll Example

As an example the command to build a relocatable DLL from api.adb once api.adb has been compiled and api.def created is

     $ gnatdll -d api.dll api.ali

The above command creates two files: libapi.dll.a (the import library) and api.dll (the actual DLL). If you want to create only the DLL, just type:

     $ gnatdll -d api.dll -n api.ali

Alternatively if you want to create just the import library, type:

     $ gnatdll -d api.dll