[Issue 23315] New: Interface requires vtbl symbol betterC COM
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 30 17:56:51 UTC 2022
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 at puremagic.com
Reporter: alphaglosined at 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.
--
More information about the Digitalmars-d-bugs
mailing list