mysqlclient-sys
mysqlclient-sys copied to clipboard
Linker error
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
https://github.com/openssl/openssl/issues/1061
https://github.com/sgrif/mysqlclient-sys/issues/22#issuecomment-659236285
I'm closing this as we now have a CI setup that demonstrates that building and linking works on windows.