How to create a DLL

Walter Bright newshound1 at digitalmars.com
Thu Jun 14 17:53:16 PDT 2007


Charlie 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?
> 
> I don't think DLL's are created with the linker, they are created with 
> lib.exe -> http://www.digitalmars.com/ctg/lib.html

No, DLLs (aka Dynamic Link Libraries) are created by the linker. 
Libraries (aka Static Link Libraries) are created by lib.



More information about the Digitalmars-d mailing list