[Issue 9723] add missing main() when compiling exe with -unittest

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 18:04:57 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9723



--- Comment #10 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-03-15 03:04:56 EET ---
Oh, sorry, I meant for C programs. main() isn't the entry point, not on Windows
at least, so there has to be some initialization code that invokes it. For D,
it's in Druntime, and it uses the C main as an "entry point". On Windows the C
runtime defines WinMain, which initializes and calls the C main().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list