[Solved] Re: Calling D libraries from C, _deh_beg madness and exception handling

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Oct 29 20:55:53 PDT 2007


"Nicolay Korslund" <korslund at gmail.com> wrote in message 
news:fg5nqc$27rn$1 at digitalmars.com...
> Nicolay Korslund Wrote:
>>
>> Is there any way to make DMD insert the correct symbols without having a 
>> D main? Or can I set them up myself somehow? I don't even know what these 
>> pointers are supposed to point to.
>>
>
> Apparantly the solution was to add an empty main() function in D code 
> somewhere. For some reason this did not create a conflict with the C 
> main(), so now everything is peace and harmony. Let's just hope it doesn't 
> suddenly stop working again at some point.
>
> N

The D main that you write gets converted to _Dmain, thus the symbols don't 
collide. 





More information about the Digitalmars-d mailing list