c++ cryptlib

yuzhiwusfm 2012-02-13 03:44:22
VS2008中引入了cryptlib.lib,编译错误

Error 106 error LNK2019: unresolved external symbol "protected: unsigned int __thiscall CryptoPP::FilterWithBufferedInput::PutMaybeModifiable(unsigned char *,unsigned int,int,bool,bool)" (?PutMaybeModifiable@FilterWithBufferedInput@CryptoPP@@IAEIPAEIH_N1@Z) referenced in function "public: virtual unsigned int __thiscall CryptoPP::FilterWithBufferedInput::Put2(unsigned char const *,unsigned int,int,bool)" (?Put2@FilterWithBufferedInput@CryptoPP@@UAEIPBEIH_N@Z) Auth.obj Auth
Error 107 error LNK2001: unresolved external symbol "class stlp_std::basic_string<char,class stlp_std::char_traits<char>,class stlp_std::allocator<char> > const CryptoPP::DEFAULT_CHANNEL" (?DEFAULT_CHANNEL@CryptoPP@@3V?$basic_string@DV?$char_traits@D@stlp_std@@V?$allocator@D@2@@stlp_std@@B) Auth.obj Auth
Error 108 error LNK2019: unresolved external symbol "public: __thiscall CryptoPP::AlgorithmParameters::AlgorithmParameters(class CryptoPP::AlgorithmParameters const &)" (??0AlgorithmParameters@CryptoPP@@QAE@ABV01@@Z) referenced in function "class CryptoPP::AlgorithmParameters __cdecl CryptoPP::MakeParameters<class CryptoPP::ConstByteArrayParameter>(char const *,class CryptoPP::ConstByteArrayParameter const &,bool)" (??$MakeParameters@VConstByteArrayParameter@CryptoPP@@@CryptoPP@@YA?AVAlgorithmParameters@0@PBDABVConstByteArrayParameter@0@_N@Z) Auth.obj Auth
Error 109 error LNK2019: unresolved external symbol "public: __thiscall CryptoPP::AlgorithmParameters::AlgorithmParameters(void)" (??0AlgorithmParameters@CryptoPP@@QAE@XZ) referenced in function "class CryptoPP::AlgorithmParameters __cdecl CryptoPP::MakeParameters<class CryptoPP::ConstByteArrayParameter>(char const *,class CryptoPP::ConstByteArrayParameter const &,bool)" (??$MakeParameters@VConstByteArrayParameter@CryptoPP@@@CryptoPP@@YA?AVAlgorithmParameters@0@PBDABVConstByteArrayParameter@0@_N@Z) Auth.obj Auth
Error 110 fatal error LNK1120: 4 unresolved externals e:\RFID_KW\BinD\Auth.dll Auth
...全文
136 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
taoyh2002 2012-02-14
  • 打赏
  • 举报
回复
include "cryptlib.lib"的头文件,如果是C的库的话放在 extern "C" {}中,像下面这样:

extern "C"
{
#include "cryptlib.h"
}
程序员小迷 2012-02-14
  • 打赏
  • 举报
回复
cryptlib.lib库路径包含进去了么
yuzhiwusfm 2012-02-13
  • 打赏
  • 举报
回复
怎么配呢,我感觉没啥要配的了
Qlaiaqu 2012-02-13
  • 打赏
  • 举报
回复
链接失败,配置有问题

64,654

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧