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