【问题标题】:unresolved external symbol __imp_CertFindChainInStore C++ SCHANNEL [closed]未解析的外部符号 __imp_CertFindChainInStore C++ SCHANNEL [关闭]
【发布时间】:2020-08-09 11:38:56
【问题描述】:

未解决的外部符号 __imp_CertFindChainInStore 编译错误

似乎如果我包含 CertFindChainInStore 我的程序将无法编译 https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certfindchaininstore

【问题讨论】:

标签: c++ schannel


【解决方案1】:

您需要链接 Crypt32.lib 来解决该功能

在你的 cpp 文件开头添加这个

 #pragma comment ( lib, "Crypt32.lib" )

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-28
    • 2012-11-19
    • 1970-01-01
    • 1970-01-01
    • 2012-12-17
    • 2012-06-30
    • 1970-01-01
    相关资源
    最近更新 更多