使用 PCL 的广度第一迭代器时LNK2001错误
LNK2001 errors while using PCL's BreadthFirstIterator
这是我的代码的代码pcl::八叉树::OctreePointCloud:: BreadthFirstIterator tree_depth_it;pcl::octree::OctreePointCloud:: breadthfirst stiterator 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:: octreebreadthfirstator> &__cdecl pcl::octree:: octreebreadthfirstator>::operator++(void)"(? ? E ? OctreeBreadthFirstIterator@V美元? OctreeBase@VOctreeContainerPointIndices@octree@pcl@@VOctreeContainerEmpty@23@@octree@pcl@@@octree@pcl@@QEAAAEAV012@XZ美元)C: Pathe 八叉树。obj manipulability_core
当我使用OctreePointCloudSearch时没有任何错误,但自从我添加了breadthfirst stiterator代码后,错误就会出现。我链接了标准的pcl_octree_debug。
在一个日本网站上找到了我的问题的答案,
来源:http://d.hatena.ne.jp/takmin/comment?date=20130719
显然你需要在你的代码中插入以下行
#include <pcl/octree/octree_impl.h>
任何使用PCL遇到任何LNK200X问题的人的参考
- 使用std::multimap迭代器创建std::list
- 来自 std::list 的迭代器 .end() 按预期返回"0xcdcdcdcdcdcdcdcd"但 .begin()
- C++中带有List类的迭代器Segfault
- 如何在c++迭代器类型中包装std::chrono
- 集合上的输出迭代器:assign和increment迭代器
- Boost Spirit,获取迭代器内部语义动作
- 对于set上的循环-获取next元素迭代器
- 为什么output_editor Concept不需要output_e迭代器标记
- c++17文件系统::recursive_directory迭代器()在mac上没有给出这样的目录,但在windows上
- 使用迭代器时如何访问对象在向量中的位置?
- std::vector::迭代器是否可以合法地作为指针
- 跟随整数索引列表的自定义类迭代器
- 不明白迭代器,引用和指针失效,一个例子
- 我可以使用反向迭代器作为ForwardIt吗
- ESP8266单片机矢量迭代器的C++问题
- 如何在C++中将迭代器作为函数参数传递
- 是否应避免从非常量迭代器转换为常量迭代器?
- 如何在 c++ 中将字符串迭代器变量传递给函数?
- 为什么 vector 的随机访问迭代器给出与指针不同的内存地址?
- 使用 PCL 的广度第一迭代器时LNK2001错误