How to create a DLL
Sean Kelly
sean at f4.ca
Thu Jun 14 16:29:59 PDT 2007
torhu wrote:
> Frank Benoit wrote:
>> I try to build a DLL with dmd on windows with tango.
>>
>> with empty functions that worked. When i put only a switch statement
>> into a method, the linker complains about a missing "__Dmain". Why is
>> that?
>
> Did you include a DllMain?
>
> http://www.digitalmars.com/d/dll.html
>
> Also check out the mydll example the comes with dmd.
Please note that the process of actually initializing the runtime for a
Tango DLL is somewhat different than Phobos. You basically just call
rt_init() to initialize and rt_term() to terminate. I'll see about
documenting this somewhere.
Sean
More information about the Digitalmars-d
mailing list