rustls / rustls-ffi

Use Rustls from any language
Other
132 stars 30 forks source link

windows test suite errors when linking #246

Closed kevinburke closed 2 years ago

kevinburke commented 2 years ago

On link, I get the following error on tip:


link -nologo -incremental:no -debug -out:target/client.exe  common.obj client.obj target/release/rustls_ffi.lib advapi32.lib userenv.lib ws2_32.lib
rustls_ffi.lib(std-f87c887dcbebcf7e.std.06878a67-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptGenRandom referenced in function _ZN3std6thread5local4fast12Key$LT$T$GT$14try_initialize17h6f0eaa92973cfc73E
target\client.exe : fatal error LNK1120: 1 unresolved externals
mingw32-make: *** [Makefile.Windows:53: target/client.exe] Error 1120

See https://github.com/kevinburke/rustls-ffi/runs/4498117227?check_suite_focus=true for details.