Next: gnatdll behind the Scenes, Up: Using gnatdll
gnatdll
ExampleAs 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.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