views:

28

answers:

2

Hello, 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 those 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.

+1  A: 

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

Can Berk Güder
A: 

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

kudor gyozo