sgrif / mysqlclient-sys

Rust bindings for libmysqlclient
Apache License 2.0
37 stars 31 forks source link

Linker error #31

Closed Nightloewe closed 5 months ago

Nightloewe commented 3 years ago

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

Lucyfurnice commented 2 years ago

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

Lucyfurnice commented 2 years ago

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

weiznich commented 5 months ago

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