Next: , Previous: Building DLLs with GNAT, Up: Mixed-Language Programming on Windows


9.3.5.12 Building DLLs with gnatdll

Note that it is preferred to use GNAT Project files (Building DLLs with GNAT Project files) or the built-in GNAT DLL support (Building DLLs with GNAT) or to build DLLs.

This section explains how to build DLLs containing Ada code using gnatdll. These DLLs will be referred to as Ada DLLs in the remainder of this section.

The steps required to build an Ada DLL that is to be used by Ada as well as non-Ada applications are as follows:

Note that a relocatable DLL stripped using the strip binutils tool will not be relocatable anymore. To build a DLL without debug information pass -largs -s to gnatdll. This restriction does not apply to a DLL built using a Library Project. See Library Projects.