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.