Windows psapi, linker issues

kinke noone at nowhere.com
Wed Dec 26 15:50:31 UTC 2018


On Wednesday, 26 December 2018 at 14:22:07 UTC, M wrote:
> Using multilib distribution and explicit `--arch=x86_64` in 
> dub, error has simply changed to "lld-link: error: undefined 
> symbol: GetProcessImageFileNameA". Note that other functions 
> (for example, from core.sys.windows.winbase) do seem to link 
> fine.

That's looking better now. You probably need to link explicitly 
against psapi.lib for that symbol. According to MSDN 
(https://docs.microsoft.com/en-us/windows/desktop/api/psapi/nf-psapi-getprocessimagefilenamea), newer Windows versions provide a `K32GetProcessImageFileName` function in kernel32.lib, but druntime declares the old one.


More information about the digitalmars-d-ldc mailing list