Should this work: export extern(C) auto ...
Benjamin Thaut via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 19 06:22:44 PDT 2015
On Thursday, 19 March 2015 at 12:58:42 UTC, Robert M. Münch wrote:
> On 2015-03-18 21:50:39 +0000, Adam D. Ruppe said:
>
>> It will not work because a function with an auto return value
>> is actually a template, and unused templates won't be put into
>> a dll.
>
> Ok, that makes it clear. Thanks.
Generally don't expect to many things to work with DLLs at the
moment. Generally speaking only exporting global functions works.
Don't try to export classes / structs or anything fancy.
More information about the Digitalmars-d-learn
mailing list