basher
03/24/2019, 2:35 AMBCryptGenRandom
. At link time, I get undefined reference to 'BCryptGenRandom'
. Here are the linker settings I have for my mingw test target:
targetFromPreset(presets.mingwX64, 'mingw') {
compilations.test.linkerOpts '-Wl,--subsystem,windows,-L"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17763.0\\um\\x64\\bcrypt.lib"'
}
I think I may have overdone it with the full path to bcrypt.lib there, but I'm trying everything. Any advice here would be appreciated! First time attempting to get my K/N code working for mingw. Thanks!compilations.test.linkerOpts '-Wl,--subsystem,windows
to match the win32 example in the K/N repomsink
03/24/2019, 5:36 AMbasher
03/24/2019, 6:13 AMolonho
03/24/2019, 3:37 PM-lbcrypt
in linker options works for me. Technically, it’s a bug in platform libs, so we’ll fix it in upcoming releases.basher
03/24/2019, 3:40 PMcompilations.test.linkerOpts "-Wl,--subsystem,windows, -Bstatic -lbcrypt"
. I also happened to have just installed msys2 and the associated mingw-w64-x86_64-toolchain (installs the platform libs to "C:\msys64\mingw64\lib"
). Did I need that, or would -lbcrypt
have worked without installing those libs?olonho
03/24/2019, 3:42 PMbasher
03/24/2019, 3:43 PM