c++ a missing vtable error

后端 未结 3 1794
盖世英雄少女心
盖世英雄少女心 2020-12-17 15:16

I am getting a really weird error related to missing vtable for a given class constructor and destructor. Please help me to resolve this.

Undefined symbols for archi

3条回答
  •  旧巷少年郎
    2020-12-17 16:08

    Try to add virtual destructor to your class. CCNode propably contains some virtual methods and your compiler failed cope with it.

        class MissionController: public CCNode
        {
    
          public:
             MissionController();
            virtual ~MissionController();
        };
    

    Is it some public framework, where can we see CCNode class definition? See vtable for .. referenced from compile error xcode or maybe http://www.parashift.com/c++-faq-lite/link-errs-missing-vtable.html for more help.

提交回复
热议问题