'>>' should be '> >' within a nested template argument list

在编译关于opencv相机标定的工程的时候出现了这个问题

vector<vector<Point3f>>  objectPoints;

 error: 'objectPoints' was not declared in this scope

error '>>' should be '> >' within a nested template argument list

导致这个问题发生的原因很简单,就是point3f>>后面的两个括号必须加空格

vector<vector<Point3f> >  objectPoints;

posted @ 2015-06-19 10:50  haoxing990  阅读(1507)  评论(0编辑  收藏  举报