Next: , Previous: , Up: Mixed-Language Programming on Windows   [Contents][Index]


7.3.6.11 Building DLLs with GNAT

This section explain how to build DLLs using the GNAT built-in DLL support. With the following procedure it is straight forward to build and use DLLs with GNAT.

At this point it is possible to use the DLL by directly linking against it. Note that you must use the GNAT shared runtime when using GNAT shared libraries. This is achieved by using `-shared' binder’s option.

$ gnatmake main -Iapilib -bargs -shared -largs -Lapilib -lAPI

Next: , Previous: , Up: Mixed-Language Programming on Windows   [Contents][Index]