www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23315] New: Interface requires vtbl symbol betterC COM

https://issues.dlang.org/show_bug.cgi?id=23315

          Issue ID: 23315
           Summary: Interface requires vtbl symbol betterC COM
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

This came up due to somebody on Discord trying to use COM classes.

```d
interface Foo {
}
```

Will result in a linker error: ``testcombetterc.obj : error LNK2001: unresolved
external symbol __D14TypeInfo_Class6__vtblZ``.

Command: ``dmd -betterC file.d``

This works with LDC and is how a COM interface is specified.

--
Aug 30 2022