XCode链接到OpenSSL库 [英] XCode linking to OpenSSL library
问题描述
尽管我在编译时遇到了一些问题,但我有一个需要链接到openssl库的项目.
I've got a project that needs to link against the openssl libraries, although when i compile i have some issues.
#include <openssl/bn.h>
#include <openssl/md5.h>
最初告诉我找不到openssl,所以我从源代码编译了它,并将openssl目录复制到了我的项目中.尽管我收到一个新错误,指出关于openssl的错误消失了:
initially told me openssl was not found, so i compiled it from source and copied the openssl directory into my project. The errors went away regarding the openssl, although I received a new error which stated:
applink.c
Lexical or Preprocessor Issue
'io.h' file not found
所以这使我相信我没有正确包含openssl库.谁能给我一些有关如何完成此操作的指示?
so this leads me to believe i'm not including the openssl library properly. can anyone give me some indication on how to accomplish this?
XCode版本5.0.2/SDK = 10.8/目标操作系统= 10.6/i386 x84_86
XCode version 5.0.2 / SDK = 10.8 / Target OS = 10.6 / i386 x84_86
推荐答案
通过链接解决:
libssl and libcrypto to target
这篇关于XCode链接到OpenSSL库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!