开发者

How can I add header files to gcc in mac os x 10.6

开发者 https://www.devze.com 2023-01-07 22:48 出处:网络
I want to build a static library that requires openssl for iPhone. It can\'t find include files from openssl. How should I tell the compiler where to look for th开发者_开发问答ose header files? Thanks

I want to build a static library that requires openssl for iPhone. It can't find include files from openssl. How should I tell the compiler where to look for th开发者_开发问答ose header files? Thanks.

EDIT: I'm trying to build librtmp for iPhone, for arm not for simulator. Just to test something. Im not building it from xcode. I think i have found INCLUDE_PATH , I'm going to try if it works.


In your Project Properties, look for "Header Search Paths" under "Search Paths"


I included both INCLUDE_PATH and C_INCLUDE_PATH and it seems they work. There is also the compiler option -Idir and -Ldir for includes and libraries. http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Directory-Options.html#Directory-Options

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号