I don't understand why dependencies are not imported.

Enamisu norukaenamisu at gmail.com
Sat Mar 8 22:21:45 UTC 2025


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 at pc:~/Project$ dub build
     Starting Performing "debug" build using /usr/bin/dmd for 
x86_64.
     Building secured 1.0.0: building configuration [library]
     Building protectmyd ~master: building configuration [app]
source/app.d(15,15): Error: undefined identifier `DWORD` in 
module `core.sys.windows.windef`
source/app.d(16,18): Error: undefined identifier `MAX_PATH` in 
module `core.sys.windows.windows`
source/app.d(17,16): Error: undefined identifier `HANDLE` in 
module `core.sys.windows.windef`
source/app.d(18,15): Error: undefined identifier `PVOID` in 
module `core.sys.windows.windef`
source/app.d(19,14): Error: undefined identifier `BOOL` in module 
`core.sys.windows.windef`
source/app.d(20,18): Error: undefined identifier `PCONTEXT` in 
module `core.sys.windows.winnt`
source/app.d(21,16): Error: undefined identifier `LPVOID` in 
module `core.sys.windows.windef`
source/app.d(22,16): Error: undefined identifier `SIZE_T` in 
module `core.sys.windows.basetsd`
source/common/run.d(15,15): Error: undefined identifier `DWORD` 
in module `core.sys.windows.windef`
source/common/run.d(16,14): Error: undefined identifier `LONG` in 
module `core.sys.windows.windef`
source/common/run.d(17,16): Error: undefined identifier `HANDLE` 
in module `core.sys.windows.windef`
source/common/run.d(18,15): Error: undefined identifier `PVOID` 
in module `core.sys.windows.windef`
source/common/run.d(19,14): Error: undefined identifier `BOOL` in 
module `core.sys.windows.windef`
source/common/run.d(20,18): Error: undefined identifier 
`PCONTEXT` in module `core.sys.windows.winnt`
source/common/run.d(21,16): Error: undefined identifier `LPVOID` 
in module `core.sys.windows.windef`
source/common/run.d(22,16): Error: undefined identifier `SIZE_T` 
in module `core.sys.windows.basetsd`
source/common/run.d(23,17): Error: undefined identifier `LPCVOID` 
in module `core.sys```

```
import std.stdio;
import std.file;
import std.string;
import std.conv;
import std.algorithm;
import std.exception;
import core.sys.windows.windows;
import core.sys.windows.winnt;
import core.sys.windows.windef;
import core.sys.windows.winbase;
import core.sys.windows.basetsd;
import secured.aes;```


More information about the Digitalmars-d-learn mailing list