I have the following code:
#include class InteractorStyle : public vtkInteractorStyleTrackballCamera { public:
All you need to add is #include <vtkObjectFactory.h>. The tutorial never explicitly mentioned this, too bad.
#include <vtkObjectFactory.h>