How does pragma(lib) work?

dsimcha dsimcha at yahoo.com
Sat Aug 27 08:59:16 PDT 2011


When I add the directive:

pragma(lib, "foo");

to a file called "bar.d" and then do:

dmd -c bar.d

does the object file bar.o or bar.obj contain a directive that reflects 
the pragma, or does pragma(lib) only work when compiling and linking in 
one step, e.g. dmd bar.d?


More information about the Digitalmars-d mailing list