mysqlclient-sys icon indicating copy to clipboard operation
mysqlclient-sys copied to clipboard

Linker error

Open Nightloewe opened this issue 3 years ago • 2 comments

I installed vcpkg as the readme mentioned, setup VCPKG_ROOT to the directory and used vcpkg install libmysql:x64-windows to install the libraries, but I'm still getting linker errors:

  = note: libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertOpenStore referenced in function capi_list_certs
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertCloseStore referenced in function capi_find_key
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertEnumCertificatesInStore referenced in function capi_find_cert
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFindCertificateInStore referenced in function capi_find_cert
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertDuplicateCertificateContext referenced in function capi_load_ssl_client_cert
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFreeCertificateContext referenced in function capi_dsa_free
          libcrypto.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertGetCertificateContextProperty referenced in function capi_cert_get_fname

I have Microsoft Visual Studio 2019 installed

Nightloewe avatar Apr 25 '21 23:04 Nightloewe

https://github.com/openssl/openssl/issues/1061

Lucyfurnice avatar Oct 07 '22 15:10 Lucyfurnice

https://github.com/sgrif/mysqlclient-sys/issues/22#issuecomment-659236285

Lucyfurnice avatar Oct 07 '22 16:10 Lucyfurnice

I'm closing this as we now have a CI setup that demonstrates that building and linking works on windows.

weiznich avatar May 11 '24 07:05 weiznich