如何从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
发布于 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。
发布于 2013-07-27 11:55:10
EVP_...是在OpenSSL中定义的。因此,您必须静态或动态地链接到OpenSSL。
发布于 2013-07-27 11:50:31
在库路径中缺少包含EVP_CipherInit函数的dll。
https://stackoverflow.com/questions/17897441
复制相似问题