Note: This website is archived. For up-to-date information about D projects and development, please visit

Making Things More Robust

(Back to Tutorials)

Or: Crash-proofing Your DDL Host Program

In this tutorial you will see examples on how to:

  • Add libraries to the linker's registry
  • Handle linkage exceptions


In the previous tutorial we loaded the host program's map file ("") via the linker like so:


What this does is tell the linker to load "", and register it for later use. That "later use" is in fact any time the linker is asked to link a new library, as we did with "plugin.obj":