I have compiled OpenSSL and have the two files: libcrypto.a and libssl.a.
In my source file I use:
#include <openssl/pkcs7.h>
#include <openssl/objects.h>
#include <openssl/sha.h>
#include <openssl/x509.h>
#include <openssl/err.h>
Then in my project under "Header Search Paths" I add:
"$(PROJECT_DIR)/Shared/libraries/openssl/include"
I add the same thing to "User Header Search Paths"
The two .a library files are linked.
When I compile, Xcode is not using my OpenSSL header files, rather it is pulling them from the standard SDK rather than my custom build:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/pkcs7.h
How can I force it to use my header files?
$(PROJECT_DIR)/Shared/libraries/openssl/include/openssl/pkcs7.h
"Always Search User Paths" is set to "Yes"