[Issue 3975] Misnamed main causes linker errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 7 02:35:37 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3975
Bernard Helyer <blood.of.life at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |blood.of.life at gmail.com
Resolution| |INVALID
--- Comment #1 from Bernard Helyer <blood.of.life at gmail.com> 2011-02-07 02:33:12 PST ---
Yes, that is working as intended. When you compile without '-c' you are telling
DMD to build you an executable -- one whose entry point is 'main'; so the
linker looks for the function, and can't find it, and tells you so. This
behaviour is the same as in C or C++.
--
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