Linker errors to Windows functions

Vladimirs Nordholm v at vladde.net
Tue Aug 20 17:17:01 UTC 2019


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 SetWindowPos 
referenced in function [...]

The function `GetSystemMetrics` and `SetWindowPos` can be found 
at 
https://github.com/dlang/druntime/blob/master/src/core/sys/windows/winuser.d , line 3874 and 4095 respectively.

In code I have `import core.sys.windows.winuser;`, but still get 
this error.

Any clues to why this might happen?


More information about the Digitalmars-d-learn mailing list