If you have all the compiler tools installed and work with the Boost libraries, install Boost through macports:
sudo port install boost
then symlink the boost folder from /opt/local/include/boost to /usr/include/boost, where /usr/include contains the c++ STL libraries.
sudo ln -s /opt/local/include/boost /usr/include/boost
This will properly resolve boost dependencies without adding additional arguments to g++.