Reputation: 6336
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.
Upvotes: 1
Views: 1679
Reputation: 6336
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
Upvotes: 1
Reputation: 113280
In your Project Properties, look for "Header Search Paths" under "Search Paths"
Upvotes: 1