Failed to include boost on macos

804 views c++

I successfully installed boost on my mac, but I can't include it in my code.


brew install boost



answered question

Your code is not a C file and also not a C++ file, it's a "PNG file" of which my compiler says it cannot use. And it can't be both, either.

Please don't post text as images. How am I going to copy it to my editor?

1 Answer


Even if you did install boost, you still need to add the headers to your application.

Go to your target properties -> Build Settings -> Header Search Path and add /usr/local/include. That's where it should have been installed IIRC.

posted this

Have an answer?


Please login first before posting an answer.