gyozo kudor
gyozo kudor

Reputation: 6336

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

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

Answers (2)

gyozo kudor
gyozo kudor

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

Can Berk Güder
Can Berk Güder

Reputation: 113280

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

Upvotes: 1

Related Questions