XCode can't find headers in /usr/include

Posted by mindthief on Stack Overflow See other posts from Stack Overflow or by mindthief
Published on 2010-05-06T22:43:32Z Indexed on 2010/05/06 22:48 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

Hi all, I'm trying to use standard system header files in my C++ XCode project:

#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>

The build fails and it complains:

"Openssl/bio.h: No such file or directory"

I added /usr/include to the "Header Search Paths" in Project settings, but that doesn't fix it.

I COULD fix it by adding the whole path like:

#include </usr/include/openssl/bio.h>

-- but the project is full of similar includes and I don't want to change all of them this way. Also, I feel I shouldn't have to do this.

Another way to fix it would be as another thread mentioned, which is to add /usr/include to User Header Search Paths. But if I do that, then I'd have to change all the angle brackets <> to quotes "", which again seems like a hack. I mean, these are standard system header files so I feel it should be something simple, not requiring these kinds of hacks.

Any ideas?

Thanks!

© Stack Overflow or respective owner

Related posts about xcode

Related posts about header-files