首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Visual中读取未解决的外部符号错误?

如何在Visual中读取未解决的外部符号错误?
EN

Stack Overflow用户
提问于 2013-07-27 11:49:14
回答 3查看 4.2K关注 0票数 2

如何从Visual读取此错误消息?有什么线索能说明到底遗漏了什么?这是一个复杂的项目,猜测是一种相当无效的方法--我更愿意知道到底要寻找什么。

1> 创建库namespace'::CryptoTransformImpl::CryptoTransformImpl(struct ..\lib64\PocoCryptod.lib和对象..\lib64\PocoCryptod.lib:..\lib64\PocoCryptod.exp 1>CipherImpl.obj : error LNK2019:未解析的外部符号EVP_CIPHER_CTX_block_size引用于"public:虚拟无符号__int64 __cdecl Poco::Crypto::anonymous namespace'::CryptoTransformImpl::blockSize(void)const " (?blockSize@CryptoTransformImpl@?A0xbc3e4780@Crypto@Poco@@UEBA\_KXZ) 1>CipherImpl.obj : error LNK2019: unresolved external symbol EVP\_CipherInit referenced in function "public: \_\_cdecl Poco::Crypto::匿名__int64 evp_cipher_st const *,class std::vector const &,class std::vector const &,enum Poco::Crypto::A0xbc3e4780::CryptoTransformImpl::Direction)“(??0CryptoTransformImpl@?A0xbc3e4780@Crypto@Poco@@QEAA@PEBUevp_cipher_st@@AEBV?$vector@EV?$allocator@E@std@@@std@@1W4Direction@0123@@Z) 1>CipherImpl.obj : error LNK2019:未解析的外部符号EVP_CipherUpdate引用于"public:int64 cdecl Poco::Crypto:‘匿名namespace'::CryptoTransformImpl::transform(unsigned char const *,__int64,未签名字符*,)“(?transform@CryptoTransformImpl@?A0xbc3e4780@Crypto@Poco@@UEAA_JPEBE_JPEAE1@Z)”

完全错误列表在这里https://gist.github.com/anonymous/91a76564651be4ac43fc

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2013-07-27 11:54:02

你把它读成

错误LNK2019:未解析的外部符号EVP_CIPHER_CTX_block_size

找不到符号EVP_CIPHER_CTX_block_size

在"public:虚拟无签名的namespace'::CryptoTransformImpl::blockSize(void)const __int64 Poco::Crypto::匿名__int64“(?blockSize@CryptoTransformImpl@?A0xbc3e4780@Crypto@Poco@@UEBA_KXZ)中引用

您正在尝试在CryptoTransformImpl::blockSize(void)const (它位于Poco::Crypto内的匿名命名空间中)中使用它。

这可能意味着you didn't link against the library that exports that symbol

票数 3
EN

Stack Overflow用户

发布于 2013-07-27 11:55:10

EVP_...是在OpenSSL中定义的。因此,您必须静态或动态地链接到OpenSSL。

票数 1
EN

Stack Overflow用户

发布于 2013-07-27 11:50:31

在库路径中缺少包含EVP_CipherInit函数的dll。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17897441

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档