gpt4 book ai didi

c++ - 静态链接 SSL 与 Poco

转载 作者:行者123 更新时间:2023-11-30 02:31:32 28 4
gpt4 key购买 nike

我正在尝试使用需要 OpenSSL 的静态链接 Poco 库构建 dll。

当我使用 libeay32MDd.libssleay32MDd.lib 静态链接构建 Poco 库时,它运行良好但需要 OpenSSL 的 DLL。如果我使用 libeay32MTd.libssleay32MTd.lib,它会抛出以下错误:

libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertOpenStore referenced in function capi_open_store 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertCloseStore referenced in function capi_find_key 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertEnumCertificatesInStore referenced in function capi_find_cert 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFindCertificateInStore referenced in function capi_find_cert 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertDuplicateCertificateContext referenced in function capi_load_ssl_client_cert 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertFreeCertificateContext referenced in function capi_find_key 8>libeay32MTd.lib(e_capi.obj) : error LNK2019: unresolved external symbol __imp_CertGetCertificateContextProperty referenced in function capi_cert_get_fname

最佳答案

你需要链接到crypt32.lib

关于c++ - 静态链接 SSL 与 Poco,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37528573/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com