I successfully installed boost on my mac, but I can't include it in my code.
brew install boost
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?
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.
Please login first before posting an answer.