pragma(lib, "name") for .di files

Jesse Phillips jessekphillips+d at gmail.com
Fri Aug 12 17:56:56 PDT 2011


On Fri, 12 Aug 2011 19:30:29 +0000, mimocrocodil wrote:

> Why pragma(lib, "name"); for .di files does not causes adding -lname to
> the linker command line?
> 
> For .d it works.
> 
> (Compiler is DMD)

I'm unsure I understand the question.

.di files can not be compiled, they only describe what can be found in 
the library and require the library. .d files on the other hand can be 
compiled and thus there is no need for a library to exist.


More information about the Digitalmars-d-learn mailing list