Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems about usage of boost. #144

Open
GuoYongyu opened this issue Oct 17, 2022 · 1 comment
Open

Some problems about usage of boost. #144

GuoYongyu opened this issue Oct 17, 2022 · 1 comment

Comments

@GuoYongyu
Copy link

I have installed boost with command brew install boost, but the path of boost is /opt/homebrew/lib and /opt/homebrew/include. Now, when I start compiling, there's a error says "'boost/dynamic_bitset.hpp' file not found" in file TemplatedVocabulary, but actually this .hpp file is in /opt/homebrew/include/boost. My Mac is MacBook pro 2021 with CPU M1 Pro. Hope anyone help me? Thanks!
(我用brew install boost安装了boost库,但是安装目录是在/opt/homebrew下,这是brew程序自动选择的安装路径。然后我编译报错没找到boost/dynamic_bitset.hpp文件,但是实际上这个hpp是找得到的,现在我束手无策,网上也没搜到靠谱能用的教程,求教github里的诸位大佬)

@LanWu076
Copy link

Not sure if you solved the problem already. Here is the solution for my case. I'm with Macbook air M2 2022.

I followed the instruction of "brew install boost" and the default path of boost is
/opt/homebrew/Cellar/boost/1.80.0/include
/opt/homebrew/Cellar/boost/1.80.0/lib

I manually add the path to the Build Settings. Select the project -->Build Settings --> Select All --> Find the Search Paths
Put /opt/homebrew/Cellar/boost/1.80.0/include in the Header Search Paths
Put /opt/homebrew/Cellar/boost/1.80.0/lib in the Library Search Paths

Then build and run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants