Xcode pch file cannot find boost even if header search path is set and boost is installed

My Foo_Prefix.pch

file cannot find boost. I installed boost with brew

and added /usr/local/include

for Debug and Release in mode Build Settings/Search Paths/Header Search Paths

in non-recursive

. Switching to recursive mode causes various problems such as header files nested too deeply.

Error message: Foo_Prefix.pch: Lexical or Preprocessor Issue 'boost/array.hpp' file not found

The header file /usr/local/include/boost/array.hpp

exists. I cleaned the project and relaunched Xcode several times.

reference

+3


source to share


1 answer


I have a similar problem, I have boost installed in .. /../../3p folder relative to the xcode project path. I added the include header path to "Header search path" .. PCH does not find the boost headers than I added the same boost include the path to "User header search path" and made "Always use user path" to "Yes". How it worked. Not sure what the problem is. Of course, I use <> to include the header headers.



0


source







All Articles