vtkStandardNewMacro gives error C4430: missing type specifier
问题 I have the following code: #include <vtkInteractorStyleTrackballCamera.h> class InteractorStyle : public vtkInteractorStyleTrackballCamera { public: static InteractorStyle* New() {}; vtkTypeMacro(InteractorStyle, vtkInteractorStyleTrackballCamera); InteractorStyle() { cout << "test"; } virtual void OnLeftButtonDown(); virtual void OnKeyPress(); private: }; vtkStandardNewMacro(InteractorStyle); //error here void InteractorStyle::OnLeftButtonDown() { std::cout << "test"; // Forward events