compile error while use `extern(C++, class)`

mogu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 18 17:28:45 PDT 2016


On Thursday, 18 August 2016 at 16:41:27 UTC, Lodovico Giaretta 
wrote:
> On Thursday, 18 August 2016 at 16:19:41 UTC, Johan Engelen 
> wrote:
>> On Thursday, 18 August 2016 at 11:43:03 UTC, Lodovico Giaretta 
>> wrote:
>>> Which compiler version are you using? On DMD 2.071.0 this 
>>> does not work.
>>
>> Note: this does work with LDC 1.1.0 even though it is based on 
>> DMD 2.071.
>>
>> https://github.com/ldc-developers/ldc/releases/tag/v1.1.0-beta2
>
> Well, LDC 1.1.0 is based on DMD 2.071.1, while I tested the 
> above code on asm.dlang.org with DMD 2.071.0, so maybe on DMD 
> 2.071.1 it works too. On nightly it works for sure.
> So again nothing wrong here, just a matter of having the most 
> recent compiler version.

No, i'm using the newest version of dmd/ldc2 (2.071.1/1.0.0) 
released.


More information about the Digitalmars-d-learn mailing list