Linker errors to Windows functions

2019-08-20 Thread Vladimirs Nordholm via Digitalmars-d-learn
Hello. I recently reinstalled Windows 10 (build 1903), and downloaded DMD (v2.087.1) and dub (v1.16.0). My project no longer compiles, giving the following errors: error LNK2019: unresolved external symbol GetSystemMetrics referenced in [...] error LNK2019: unresolved external symbol

Re: Linker errors to Windows functions

2019-08-20 Thread Dennis via Digitalmars-d-learn
On Tuesday, 20 August 2019 at 17:17:01 UTC, Vladimirs Nordholm wrote: In code I have `import core.sys.windows.winuser;`, but still get this error. Importing only specifies that you expect the symbols to be there, it doesn't mean the functions are linked in. On Windows there are three targets

Re: Linker errors to Windows functions

2019-08-20 Thread Vladimirs Nordholm via Digitalmars-d-learn
On Tuesday, 20 August 2019 at 17:29:15 UTC, Dennis wrote: On Tuesday, 20 August 2019 at 17:17:01 UTC, Vladimirs Nordholm wrote: [...] Importing only specifies that you expect the symbols to be there, it doesn't mean the functions are linked in. [...] Thank you for the explanation Dennis.