pragma(mangle)

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jun 11 16:17:54 PDT 2011


On 6/12/11, Robert Clipsham <robert at octarineparrot.com> wrote:
> On 11/06/2011 23:15, Andrej Mitrovic wrote:
>> On 6/11/11, Daniel Murphy<yebblies at nospamgmail.com>  wrote:
>>> You could use it, for example, to provide a function with C++ linkage
>>> taking
>>> a C++ long parameter, something which I think is currently impossible in
>>> D.
>>
>> I assumed I must have been doing something wrong when I filed this:
>> http://d.puremagic.com/issues/show_bug.cgi?id=6121 . But I guess not.
>> I can't link DDMD with the DMD 2.053 backend because of this. I'd have
>> to change DMD's long types to int, which might not be a big issue but
>> I'd rather avoid having to patch every release..
>
> When I was working on ddmd this was worked around with a wrapper C file
> that wrapped the functions with long parameters in functions D accepted.
> Is that file no longer there?
>
> --
> Robert
> http://octarineparrot.com/
>

I did have to update some definitions in the bridge file, and now I've
just noticed that I've accidentally killed one prototype in the bridge
file. So that fixes that issue.

I'm left with one nagging symbol, "Symbol Undefined ?fatal@@YAXXZ
(void cdecl fatal(void ))". I'll figure this out later.


More information about the Digitalmars-d mailing list