Git, the D package manager
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 4 10:07:10 PST 2015
On Wednesday, 4 February 2015 at 18:03:54 UTC, Jacob Carlborg
wrote:
> On 2015-02-02 09:09, Vladimir Panteleev wrote:
>
>> 1a. rdmd and D's module system:
>>
>> When you run `dmd -o- program.d`, the compiler will
>> automatically read
>> all modules imported by your program, and their imports, and
>> so on. It
>> does so by searching the filesystem across its search path for
>> matches
>> which correspond with D's module system, and only reads those
>> files that
>> are needed.
>
> This doesn't work for libraries. For example, two files that
> don't import each other.
You mean via extern(C)?
You can use pragma(lib), and the compiler will emit a linker
instruction to add the specified library. I'm not sure about the
platform support, though.
More information about the Digitalmars-d
mailing list