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

查看:25
本文介绍了为什么包含 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:

  1. 将目录更改为 crypto/ui/ui_openssl.c.
  2. 为 i368 iPhone 模拟器构建 OpenSSL.
  3. includelibcrypto.alibssl.a复制到项目文件夹中.
  4. libcrypto.alibssl.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天全站免登陆