在VS2010上构建openssl时出错

Error Building openssl on VS2010

本文关键字:出错 openssl 构建 VS2010      更新时间:2023-10-16

链接过程中出现问题,我缺少什么文件?

Visual studio 2010错误输出

  • 错误14错误LNK2001:未解析的外部符号___umodi3 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 C:\Users\Yohannes\Desktop\AES中引用了未解析的外部符号___udivdi3加密\libcrypto.a(b_print.o)Rijndael
  • 错误13错误LNK2019:函数_fmtint C:\Users\Yohannes\Desktop\AES中引用了未解析的外部符号___umoddi3加密\libcrypto.a(b_print.o)Rijndael
  • 错误10错误LNK2019:函数中引用的未解析外部符号__alloca_OPENSSL_service C:\Users\Yohannes\Desktop\AES Encryption\libcrypto.a(cryptlib.o)Rijndael-

根据: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