Thanks a lot all! The problem was addressed. I recently found out that if I include the boost headers in the beginning(as the first headers), before any of the project headers(we have a header file in our project where we add files we want to add first) it worked. I am not sure why!