本文介绍了为什么包含OpenSSL静态库时会出现编译错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用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静态库时会出现编译错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!