status of shared libs
Maxim Fomin
maxim at maxim-fomin.ru
Mon Apr 8 02:51:10 PDT 2013
On Monday, 8 April 2013 at 06:29:33 UTC, Jacob Carlborg wrote:
> 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.
C main function need to be renamed or D main function should be
supplied (then a program would start from C code, not D, but this
is not a problem)
By the way, druntime links to _Dmain, but does not necessarily
forwards to it.
More information about the Digitalmars-d
mailing list