为什么包含 OpenSSL 静态库时会出现编译错误? [英] Why is there a compile error when including OpenSSL static library?
本文介绍了为什么包含 OpenSSL 静态库时会出现编译错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用 OpenSSL 时遇到了一些问题.我正在关注 为 iOS 编译 OpenSSL 的教程,但它仍然无法正常工作.这是我的问题:
I have some problems using OpenSSL. I'm following the tutorial for compiling OpenSSL for iOS, but it is still not working. Here is my problem:
- 将目录更改为
crypto/ui/ui_openssl.c
. - 为 i368 iPhone 模拟器构建 OpenSSL.
- 将
include
、libcrypto.a
和libssl.a
复制到项目文件夹中. - 将
libcrypto.a
和libssl.a
拖到项目树中. - 更改构建信息.
- Change directories into
crypto/ui/ui_openssl.c
. - Build OpenSSL for i368 iPhone simulator.
- Copy the
include
,libcrypto.a
andlibssl.a
to the project folder. - Drag
libcrypto.a
andlibssl.a
to project tree. - Change the build info.
它适用于 openssl-1.0.0c
.然后,当我编码 #include <openssl/md5.h>
并构建时,我收到错误没有这样的文件或目录".帮助!非常感谢!
It worked with openssl-1.0.0c
. Then as I was coding #include <openssl/md5.h>
and building, I got the error "no such file or directory."
Help! Thanks a lot!
推荐答案
@ben 你在你的项目中做这样的事情吗
@ben do you something like this in your project
这篇关于为什么包含 OpenSSL 静态库时会出现编译错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文