A function-definition is not allowed here before '{'

前端 未结 4 875
悲&欢浪女
悲&欢浪女 2020-12-19 17:11

i am getting a REALLY annoying error. i literally looked everywhere for it! i even went back and changed all of my

if (case)
    // to-do
<
4条回答
  •  轮回少年
    2020-12-19 17:58

    Watch this line:

      image_buffer_ = NULL; // just set it to null if it doesn't :\
    

    This begins a multi-line comment, commenting out the following:

    }
    

    Your compiler should warn you about this.

    Remove the \ and then you can move on to the rest of your warnings and errors!

提交回复
热议问题