status of shared libs
Jacob Carlborg
doob at me.com
Sun Apr 7 23:34:36 PDT 2013
On 2013-04-08 06:16, Walter Bright wrote:
> Currently, I think you'll need a D main().
I don't think that's a good solution. Currently a quick workaround is to
declare D main as a weak symbol.
What I think could be a better choice, in the long run, is to put the C
and D main functions in a separate file, compiled as its own object
file. This object file will only be linked when DMD is linking an
executable.
The "rt_info" and D "main" functions should also be refactored so D main
calls "rt_info" to avoid duplicating code.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list