Xcode header search path not working for an include relative to another header -
i have file in project #including header file
#import "core.hpp"
in header search paths, put path:
./opencv2.4.9/osx/include   recursive
and works, xcode can find core.hpp though don't reference in project.
core.hpp's full path is: ./opencv2.4.9/osx/include/opencv2/core/core.hpp
the problem inside of core.hpp, there #include
#include "opencv2/core/types_c.h"
xcode cannot find header.
i have played every build setting find, no avail.
it's odd because have working in 1 of our projects, in new test project i'm making, can't seem work of build settings matching (as far can tell)
this closest question find related mine: xcode 4 c++ header file relative path header
but problem cannot change #include "opencv2/core/types_c.h", because it's not header
finally figured out. changed header search path to
./opencv2.4.9/osx
from
./opencv2.4.9/osx/include
i found modifying opencv header, , found while
 #include "opencv2/core/types_c.h" didn't work;
 if did #include "types_c.h" work, , further, #include "core/types_c.h" worked
and because didn't want modify opencv headers, found if removed last piece of header search path, include, xcode happy