Include .def definition file information for the linker into a .d source file
BoQsc
vaidas.boqsc at gmail.com
Wed Nov 24 19:16:50 UTC 2021
On Wednesday, 24 November 2021 at 17:38:42 UTC, BoQsc wrote:
> [...]
> **The obvious problem now is:** How can you compile without
> specifying the flags. With plain dmd.
It probably has to do something with the default target of dmd
(`-m32`) generating **OMF object file**.
https://dlang.org/dmd-windows.html#switch-m32
`-m32mscoff` and `-m64` both generate **MS-COFF Object file**
instead of **OMF object file**.
---
The below error is caused when the compilation target is **OMF
object file** instead of **MS-COFF Object file**.
```
winsamp.d(11): Error: unrecognized pragma(linkerDirective)
```
More information about the Digitalmars-d-learn
mailing list