extern (D)?

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Jan 17 18:08:34 PST 2013


On 1/18/13, Rob T <alanb at ucora.com> wrote:
> The usual way to link in D libs into D code is to include the
> required D module source files, but that gives away all of the
> source code which in some instances is not possible to do (eg
> legal reasons). The other way..

The other way is to use D interface files, which the compiler can
automatically generate for you if you pass the -H switch. Also use the
-op switch if you're generating multiple files at once, which will
preserve directory paths.


More information about the Digitalmars-d-learn mailing list