vs2010下正常的工程在vs2012下出错

明月生寒 2012-10-10 08:57:56
开发环境vs2012+openSSL, build时出现如下错误


1>------ Build started: Project: Client, Configuration: Debug Win32 ------
1> stdafx.cpp
1> crypto.cpp
1> ClientDlg.cpp
1> Generating Code...
1> Skipping... (no relevant changes detected)
1> Client.cpp
1>ClientDlg.obj : error LNK2019: unresolved external symbol _EVP_sha1 referenced in function "public: void __thiscall CClientDlg::OnClickedSend(void)" (?OnClickedSend@CClientDlg@@QAEXXZ)
1>crypto.obj : error LNK2019: unresolved external symbol _RAND_bytes referenced in function "public: static long __cdecl crypto::randNum(void)" (?randNum@crypto@@SAJXZ)
1>crypto.obj : error LNK2019: unresolved external symbol _RAND_seed referenced in function "public: static long __cdecl crypto::randNum(void)" (?randNum@crypto@@SAJXZ)
1>crypto.obj : error LNK2019: unresolved external symbol _RAND_status referenced in function "public: static long __cdecl crypto::randNum(void)" (?randNum@crypto@@SAJXZ)
1>crypto.obj : error LNK2019: unresolved external symbol _RAND_poll referenced in function "public: static long __cdecl crypto::randNum(void)" (?randNum@crypto@@SAJXZ)
1>D:\workspace\C++\CryptoLabFrame\Debug\Client.exe : fatal error LNK1120: 5 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

为什么在vs2010下反而是正常的。。。求解决方案。。。
...全文
262 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
明月生寒 2012-10-11
  • 打赏
  • 举报
回复
自顶 来各路大神。。。
明月生寒 2012-10-10
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

源代码是用vs2010写的?
[/Quote]
是的。。。
大熊猫侯佩 2012-10-10
  • 打赏
  • 举报
回复
源代码是用vs2010写的?

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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