Windows psapi, linker issues
kinke
noone at nowhere.com
Wed Dec 26 12:15:43 UTC 2018
On Wednesday, 26 December 2018 at 12:06:38 UTC, M wrote:
> When trying to use `import core.sys.windows.psapi :
> GetProcessImageFileNameA`, LDC fails to link with an error
> `lld-link: error: undefined symbol:
> _GetProcessImageFileNameA at 12` (LDC distribution
> https://github.com/ldc-developers/ldc/releases/download/v1.13.0/ldc2-1.13.0-windows-x64.7z , "vs2017-win2016" Windows image from Azure pipelines).
>
> Any ideas?
The error suggests you're targeting Win32 (-m32) but using a
Win64-only LDC distribution. The multilib package features 32-bit
libs too.
More information about the digitalmars-d-ldc
mailing list