digitalmars.D - How to create a DLL
- Frank Benoit (3/3) Jun 14 2007 I try to build a DLL with dmd on windows with tango.
- torhu (4/8) Jun 14 2007 Did you include a DllMain?
- Sean Kelly (6/18) Jun 14 2007 Please note that the process of actually initializing the runtime for a
- Charlie (3/7) Jun 14 2007 I don't think DLL's are created with the linker, they are created with
- Walter Bright (3/12) Jun 14 2007 No, DLLs (aka Dynamic Link Libraries) are created by the linker.
- Charlie (2/15) Jun 16 2007 Ack, ignore me !
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?
Jun 14 2007
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.
Jun 14 2007
torhu wrote:Frank Benoit wrote: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. SeanI 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.
Jun 14 2007
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
Jun 14 2007
Charlie wrote:Frank Benoit wrote:No, DLLs (aka Dynamic Link Libraries) are created by the linker. Libraries (aka Static Link Libraries) are created by lib.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
Jun 14 2007
Walter Bright wrote:Charlie wrote:Ack, ignore me !Frank Benoit wrote:No, DLLs (aka Dynamic Link Libraries) are created by the linker. Libraries (aka Static Link Libraries) are created by lib.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
Jun 16 2007