D2.0 cpp interfacing: what is a C++ unsigned long counterpart in D?

Tomas Lindquist Olsen tomas.l.olsen at gmail.com
Sat Oct 3 10:50:06 PDT 2009


On Sat, Oct 3, 2009 at 2:55 PM, Denis Koroskin <2korden at gmail.com> wrote:
> I'm currently writing a program that interfaces with C++.
> C++ code uses a lot of 'unsigned long', which equals to 'unsigned int', or
> just 'unsigned', but is mangled differently.
>
> In particular, C++ mangles unsigned long as 'K', and I can't find a D
> counterpart that would be mangled similarly.
> This results in an unaccessible function (it is unresolved at link time).
>
> Any thoughts?
>

The type of C++ "unsigned long" depends on the target platform.



More information about the Digitalmars-d mailing list