On Sunday, 9 March 2025 at 08:25:00 UTC, Mike Parker wrote:
On Saturday, 8 March 2025 at 22:21:45 UTC, Enamisu wrote:
I have errors when working with the `core.sys.windows.winnt`
library. I use dub to compile the program. I don't understand
why dependencies are not imported. Please help me understand
the cause of the error.
```
enamisu@pc:~/Project$ dub build
Starting Performing "debug" build using /usr/bin/dmd for
x86_64.
This is the problem: /usr/bin/dmd
It suggests you're not on Windows. All of the Windows-specific
declarations are available only when `version(Windows)` is
true. You'll need to cross-compile with LDC or build on a
Windows box.
When you do, `import core.sys.windows.windows` should be the
only import you need. And you can get rid of all of your
aliases.
Thank you very much, it really works. It's a pity that I'll have
to use a Windows virtual machine, it's not convenient.