Calling C++ code with pointer** argument

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 1 00:18:50 PDT 2016


On Wednesday, 1 June 2016 at 07:17:04 UTC, Mike Parker wrote:
> On Wednesday, 1 June 2016 at 07:09:16 UTC, abad wrote:

>>
>> What's happening? I know there are differences in const 
>> behavior between D and C++, but can't figure a way around it. 
>> Any sort of casting trick I tried doesn't seem to help.
>
> Try this:
>
> extern(C++) void DoesNotLink(const(char)**);

And I don't know if this was just a typo in your post,  but also 
note that you 'D'oesNotLink in the CPP source you pasted and 
'd'oesNotLink in the D code.


More information about the Digitalmars-d-learn mailing list