这是我的代码的代码 pcl :: octree :: OctreePointCloud :: BreadthFirstIterator tree_depth_it; pcl :: octree :: OctreePointCloud :: BreadthFirstIterator tree_depth_it_end = octree.breadth_end();
for (tree_depth_it = octree.breadth_begin(); tree_depth_it != tree_depth_it_end; ++tree_depth_it)
{
if (tree_depth_it.isLeafNode()){...
显示错误
错误1错误LNK2001:未解析的外部符号“public:class pcl :: octree :: OctreeBreadthFirstIterator>& __cdecl pcl :: octree :: OctreeBreadthFirstIterator> :: operator ++(void)”(?? E?$ OctreeBreadthFirstIterator @V?$ OctreeBase @ VOctreeContainerPointIndices @ octree @ pcl @@ VOctreeContainerEmpty @ 23 @@ octree @ pcl @@@ octree @ pcl @@ QEAAAEAV012 @XZ)C:\ Pathe \ Octree.obj manipulability_core
当我使用OctreePointCloudSearch时没有任何错误,但是自从我添加了错误将出现的BreadthFirstIterator代码以来。我已经链接了标准的pcl_octree_debug.lib,提升了lib和misc pcl库,但我仍然无法摆脱错误。
答案 0 :(得分:4)
从日本网站找到我的问题的答案,
来源:http://d.hatena.ne.jp/takmin/comment?date=20130719
显然,您需要在代码中插入以下行
#include <pcl/octree/octree_impl.h>
任何使用PCL遇到任何LNK200X问题的人的参考