在xcode下用openssl写dh密钥交换,遇到“ld: library not found for -lcrypto”问题(已解决)
来源:互联网 发布:java特种兵 下册 pdf 编辑:程序博客网 时间:2024/06/05 21:52
今天下午用xcode写一个特别简单的diffie-hellman密钥交换代码,参考了一堆资料,排除了逻辑和语法的错误以后依然编译不过,还有一个问题,问题截图如下:
一直提示 “ld: library not found for -lcrypto” & “Linker command failed with exit code 1”
然后就在Google搜,在 #xhe_tmpurl http://www.cnblogs.com/zhulin/archive/2011/12/04/2275205.html 找到了问题的一个解决方法,截图如下:
然后我就想到了Xcode一直提示找不到链接库,就把openssl库文件的链接给添加上,如下图:
而且一定要注意的是 “Header Search Paths" 和 "Library Search Paths" 的路径不一样,比如在我的openssl中,头文件都保存在include文件夹内,而库文件则在lib文件夹下,如下图:
5 0
- 在xcode下用openssl写dh密钥交换,遇到“ld: library not found for -lcrypto”问题(已解决)
- xcode在Archive生成安装包时遇到ld: library not found for -lPods
- 4、 xcode在Archive生成安装包时遇到ld: library not found for -lPods
- "ld: library not found for -l...." 问题的解决
- 解决 ld: library not found for -lPods的问题
- "ld: library not found for -l...." 问题的解决
- "ld: library not found for -l...." 问题的解决
- ld: library not found for 解决
- 问题:ld: library not found for -lcurl
- Xcode遇到Library not found for -XXX问题
- #已解决#如何解决ld: library not found for -lAFNetworking这个问题
- 解决Xcode编译错误 ld: library not found for -lcrt1.3.1.o
- Xcode - ld: library not found for -lPods -******* 错误
- Xcode Archive报错: ld: library not found for -lAFNetworking
- ld: library not found for -lgcc_s.10.5错误的解决
- 解决 ld:library not found for -lPods-XXX
- IOS如何解决 ld: library not found for -lAFNetworking
- Xcode解决警告“ld: warning: directory not found for option”
- 01字典树小结-2017HZAU现场赛H-MathematicalGame
- 1004: C语言考试练习题_排列
- 你不能做宅男,因为你穷
- android——DrawerLayout
- spring的xml配置文件中获取jdbc.properties乱码导致连接数据库失败
- 在xcode下用openssl写dh密钥交换,遇到“ld: library not found for -lcrypto”问题(已解决)
- bash脚本
- PAT-A-1088. Rational Arithmetic (20)
- linux系统用户免登设置
- 指针练习
- 二叉树的最小深度
- Eum 枚举类的学习
- 剑指offer--从上往下打印二叉树
- android studio查看函数用法、函数解释、函数说明