Just-run-the-unittests
Dicebot
public at dicebot.lv
Sun Mar 16 13:22:14 PDT 2014
On Sunday, 16 March 2014 at 12:57:04 UTC, Rikki Cattermole wrote:
> On Sunday, 16 March 2014 at 10:15:00 UTC, Andrej Mitrovic wrote:
>> It can't work, because main could be stored in a pre-built
>> object or
>> static library that's passed to DMD.
>
> Hmm I really should consider making a DIP for a deferred CTFE
> block. Could really come in handy for a situation like this. In
> the format of if -main specified use e.g. -version=D_Main to
> remove the call to _Dmain symbol. Removes the whole linker
> issue altogether.
Linker will still complain about duplicate symbols. This issue
can't be solved within existing C-compatible object file
toolchain.
More information about the Digitalmars-d-learn
mailing list