In your stdafx.h, move #include "Person.h" to end of the #includes. Your Person.h file uses cout, string etc which haven't yet been defined.