【发布时间】:2012-06-15 17:20:23
【问题描述】:
我正在尝试在此处编译由 x2on 创建的示例 iphone openssl: https://github.com/x2on/OpenSSL-for-iPhone
尝试在 Xcode 4.3.3 中编译时出现以下错误:
架构 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.old:未找到体系结构 i386 的符号
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
我已经尝试解决此问题一天左右,但我不知道该怎么做。
如果需要,我可以提供更多信息。
【问题讨论】:
-
您是否已完成所有步骤以将他们的库包含在您的项目中?我不熟悉,但快速搜索显示了这一点,这非常复杂。您能否验证该库是否已正确包含? x2on.de/2010/02/01/…
-
上述步骤无法执行,所以我从更高版本的 openssl 导入文件。我不确定它是否仍然有效,但也许这是一些图书馆问题。库仍然链接到项目。
标签: iphone xcode compiler-errors openssl xcode4.3