解决办法: 把#include <vtkSmartPointer.h>放到所有头文件的最前面; 转载于:https://www.cnblogs.com/canyeweiwei/p/10645108.html