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: [email protected]
Reporter: [email protected]
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.
--