www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - pragma(lib, "name") for .di files

reply mimocrocodil <4denizzz gmail.com> writes:
Why pragma(lib, "name"); for .di files does not causes adding -lname to
the linker command line?

For .d it works.

(Compiler is DMD)
Aug 12 2011
next sibling parent Jesse Phillips <jessekphillips+d gmail.com> writes:
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.
Aug 12 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-08-12 21:30, 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)
http://d.puremagic.com/issues/show_bug.cgi?id=2776 -- /Jacob Carlborg
Aug 13 2011