错误 C2065:"resultImgs":未声明的标识符

error C2065: 'resultImgs' : undeclared identifier

本文关键字:标识符 未声明 resultImgs 错误 C2065      更新时间:2023-10-16

编译时出现错误"错误C2065:"resultImgs":未声明的标识符"。这是怎么回事?请帮忙!

    {
        // record all non-zero responses in case we need to do further research
        // but in fact, we only need the max response as the final result
        responses.push_back(response);
        IplImage* resultImg = siftController.setResultImg(it->ptr.get(),image);
        resultImgs.push_back(BasicCvApi::MyImagePtr(resultImg));
        strings.push_back(it->className);
    }

错误消息非常清楚:编译器看不到名称resultImgs的定义。因此,请检查此名称,同时考虑到名称的拼写