为什么包含OpenSSL静态库时会出现编译错误? [英] Why is there a compile error when including OpenSSL static library?

查看:129
本文介绍了为什么包含OpenSSL静态库时会出现编译错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用OpenSSL时遇到了一些问题。我正在关注用于编译OpenSSL for iOS的教程,但它仍然无效。这是我的问题:

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:


  1. 将目录更改为 crypto / ui / ui_openssl.c

  2. 为i368 iPhone模拟器构建OpenSSL。

  3. 复制 include libcrypto.a libssl.a 到项目文件夹。

  4. 拖动 libcrypto.a libssl.a 到项目树。

  5. 更改构建信息。

  1. Change directories into crypto/ui/ui_openssl.c.
  2. Build OpenSSL for i368 iPhone simulator.
  3. Copy the include, libcrypto.a and libssl.a to the project folder.
  4. Drag libcrypto.a and libssl.a to project tree.
  5. 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆