在VS2010上构建openssl时出错

时间:2012-08-28 17:22:22

标签: c++ openssl

在链接哪些文件时遇到问题?

  

Visual Studio 2010错误输出

  • 错误14错误LNK2001:未解析的外部符号 ___umoddi3 C:\ Users \ Yohannes \ Desktop \ AES Encryption \ libcrypto.a(bn_word.o)Rijndael
  • 错误11错误LNK2001:未解析的外部符号__alloca C:\ Users \ Yohannes \ Desktop \ AES Encryption \ libcrypto.a(sha512.o)Rijndael
  • 错误12错误LNK2001:未解析的外部符号__alloca C:\ Users \ Yohannes \ Desktop \ AES Encryption \ libcrypto.a(err_prn.o)Rijndael
  • 错误15错误LNK2019:函数_fmtint中引用的未解析的外部符号___udivdi3 C:\ Users \ Yohannes \ Desktop \ AES 加密\ libcrypto.a(b_print.o)Rijndael
  • 错误13错误LNK2019:函数_fmtint中引用的未解析的外部符号___umoddi3 C:\ Users \ Yohannes \ Desktop \ AES 加密\ libcrypto.a(b_print.o)Rijndael
  • 错误10错误LNK2019:函数中引用了未解析的外部符号__alloca _OPENSSL_isservice C:\ Users \ Yohannes \ Desktop \ AES Encryption \ libcrypto.a(cryptlib.o)Rijndael -

1 个答案:

答案 0 :(得分:1)

根据:http://aluigi.freeforums.org/post4997.html

link it to libcrypto.a, it's the static library.

if you don't have it:
http://gnuwin32.sourceforge.net/packages/openssl.htm