错误:无效使用不完整类型'class cv :: Mat'&错误:转发> CodeBlocks中'class cv :: Mat'的声明

时间:2016-03-16 01:09:06

标签: c++ linux opencv codeblocks

这里需要帮助......我刚从程序代码中删除了这些错误。当我尝试构建我的程序时,从 mat.hpp 文件继续弹出类cv :: Mat的错误。

  

../../ gitRepo / recotraffic2.git / include / opencv2 / core / mat.hpp | 58 |错误:无效使用不完整类型'class cv :: Mat'|

inline void Mat::initEmpty()
{
    flags = MAGIC_VAL;
    dims = rows = cols = 0;
    data = datastart = dataend = datalimit = 0;
    refcount = 0;
    allocator = 0;
}

inline Mat::Mat() : size(&rows)
{
    initEmpty();
}

inline Mat::Mat(int _rows, int _cols, int _type) : size(&rows)
{
    initEmpty();
    create(_rows, _cols, _type);
}

inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) : size(&rows)
{
    initEmpty();
    create(_rows, _cols, _type);
    *this = _s;
}

然后 base.hpp 也从该行出现了以下错误:

  

/usr/local/include/opencv2/core/base.hpp|627 | error:forward   宣布'class cv :: Mat'|

class CV_EXPORTS Mat;

0 个答案:

没有答案