下面是我的代码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)“C:\Pathe\Octree.obj manipulability_core
当我使用OctreePointCloudSearch时没有任何错误,但是自从我添加了BreadthFirstIterator代码之后,这个错误就会出现。我已经链接了标准的pcl_octree_debug.lib,增强了库和misc库,但是我仍然无法消除这个错误。
发布于 2014-06-26 13:03:30
从日本网站上找到了我问题的答案,
来源:http://d.hatena.ne.jp/takmin/comment?date=20130719
显然,您需要在代码中插入以下一行
#include <pcl/octree/octree_impl.h>任何使用PCL遇到任何LNK200X问题的人的参考
https://stackoverflow.com/questions/24413330
复制相似问题