C++ 错误:无效使用不完整的类型‘;类别cv::Mat’&;错误:正向>;声明‘;类别cv::Mat’;在代码块中
这里需要帮助。。。我只是在程序代码中留下了这些错误。当我尝试构建程序时,从mat.hpp文件keep on弹出类cv::mat的错误 ../../gitRepo/recotraffic2.git/include/opencv2/core/mat.hpp | 58 |错误:无效使用不完整类型“class cv::mat”| 然后base.hpp也从该行中得出以下错误: /usr/local/include/opencv2/core/base.hpp | 627 |错误:正向 “类别cv::Mat”的声明|C++ 错误:无效使用不完整的类型‘;类别cv::Mat’&;错误:正向>;声明‘;类别cv::Mat’;在代码块中,c++,linux,opencv,codeblocks,C++,Linux,Opencv,Codeblocks,这里需要帮助。。。我只是在程序代码中留下了这些错误。当我尝试构建程序时,从mat.hpp文件keep on弹出类cv::mat的错误 ../../gitRepo/recotraffic2.git/include/opencv2/core/mat.hpp | 58 |错误:无效使用不完整类型“class cv::mat”| 然后base.hpp也从该行中得出以下错误: /usr/local/include/opencv2/core/base.hpp | 627 |错误:正向 “类别cv::Mat”
我也有同样的错误。你设法解决了吗?我想这和我自己试图编译opencv有关。。。
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;
}
class CV_EXPORTS Mat;