iphone - iPhone openssl无法编译

我正在尝试在此处编译x2on创建的示例iPhone openssl:
https://github.com/x2on/OpenSSL-for-iPhone

尝试在Xcode 4.3.3中进行编译时出现以下错误:

Undefined symbols for architecture i386:

 "_MD5", referenced from:

     -[ViewController calculateMD5:] in ViewController.o

 "_SHA256_Init", referenced from:

     -[ViewController calculateSHA256:] in ViewController.o

 "_SHA256_Update", referenced from:

     -[ViewController calculateSHA256:] in ViewController.o

 "_SHA256_Final", referenced from:

     -[ViewController calculateSHA256:] in ViewController.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)



我一直在尝试解决此问题大约一天,而我对要做的事情感到困惑。

如果需要,我可以提供更多信息。

最佳答案

根据this site的指示,它表明您需要与libcrypto链接。

https://stackoverflow.com/questions/11055392/

相关文章:

iphone - Xcode错误语义错误值可能无法响应 'initWithFrame:image N

macos - NS-3编译错误

actionscript-3 - 在AS3中将符号添加到阶段出现1046错误

c# - 仅当从网络驱动器进行编译时,编译问题[“Root activity type is inv

VBA:在 Excel 中创建宏 - 编译错误 -- 'Sub or function is not

gcc - 使用gcc 4.6在内核3.0上编译LLVM 2.9的gcc 4.2

compiler-errors - libdft_api.h :36:25: fatal error

android-ndk - 编译tesseract时出错

c#-4.0 - 无法将 X 类型的对象转换为 Y

ruby-on-rails - Rails 将 form_for 对象传递给部分