On 2013-04-08 06:35, Maxim Fomin wrote:
DMD inserts some additional info in object file if main() is present and sometimes it is required. One of the solutions is to use dummy D module (with main function defined) which forwards startup arguments to C main function.
druntime already defines a C main function as well, which forwards to the D main function.
-- /Jacob Carlborg
