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.

Reply via email to