Why do I get the error “error: unknown type name 'virtual'” when trying to compile this code?

后端 未结 7 2465
庸人自扰
庸人自扰 2021-02-14 01:41

Code:

struct IRenderingEngine {
    virtual void Initialize(int width, int height) = 0;
    virtual void Render() const = 0;
    virtual void UpdateAnimation(flo         


        
相关标签:
7条回答
  • 2021-02-14 02:11

    Please rename the main.m to main.mm. This worked for me.

    0 讨论(0)
提交回复
热议问题