xcode 下使用boost 报如下错误
xcode boost/tokenizer.hpp file not found
原因为mac 下无boost。需手工编译。方法如下:
安装boost:
brew install boost
安装完成后,得到如下目录:
/usr/local/Cellar/boost/1.58.0
修改xcode 项目:
HEADER_SEARCH_PATHS中添加/usr/local/Cellar/boost/1.58.0/include
//:configuration = Debug
HEADER_SEARCH_PATHS = $(inherited) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /usr/local/Cellar/boost/