step23和step24合起来学习
编译之后,报错
error: 'struct ActionLink' has no member named 'AddAction'? 没有成员函数
error: expected type-specifier before 'AddAction' 没有类型标识符
编译报错:
expected type-specifier before 'AddAction',没有类型标识符
编译报错
error: no matching function for call to 'AddAction::AddAction(std::__cxx11::list<IItem*>&)没有合适的构造函数
编译报错
?error: no matching function for call to 'ActionLink::AddAction(AddAction*)'
? ? ? ? ?_actionLink.AddAction(new AddAction(_items));?
AddAction()函数形式不对
然后编译报错:error: 'EditAction' has not been declared
编译后报错:
error: no matching function for call to 'ActionLink::AddAction(AddAction*)',参数不是AddAction
·
编译后报错:wxMyPainterMain.cpp:328: undefined reference to `AddAction::AddAction(std::__cxx11::list<IItem*, std::allocator<IItem*> >&)'? ?没有构造函数
编译后报错:action_link.cpp:5: undefined reference to `vtable for AddAction',找不到虚函数表
可以正常运行了,日志窗也弹出了,但记录日志功能还不能用