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下反而是正常的。。。求解决方案。。。