Why do the WindowsAPI bindings have pragma calls?

Andrej Mitrovic none at none.none
Fri Apr 8 12:11:40 PDT 2011


E.g. the WindowsAPI bindings have the wingdi.d file, which has this call at the very top of the module:

pragma(lib, "gdi32.lib");

This doesn't seem to put any gdi32.lib symbol references to the final winapi library file, and if I try to use a function from wingdi.d from a main file, I still have to manually link to the gdi32.lib file (or use a pragma), otherwise I get undefined symbol errors.

So what are those pragmas for?


More information about the Digitalmars-d-learn mailing list