Usually with issues like that, I blame a missing curly-brace '}' in a source file included previously.
Do you have problems if you compile a blank source file with only a boost include? E.g. compile a file containing only #include <boost/shared_ptr.hpp>.