1. 程式人生 > >關於PCL中使用八叉樹時出現無法解析的外部命令的錯誤*

關於PCL中使用八叉樹時出現無法解析的外部命令的錯誤*

關於PCL中使用八叉樹時出現無法解析的外部命令的錯誤

#前幾天在使用八叉樹的時候在編譯時總是出現無法解析的外部命令的錯誤 6 error LNK2001: 無法解析的外部符號 "protected: virtual bool __thiscall pcl::octree::OctreePointCloud<struct pcl::PointXYZ,class pcl::octree::OctreeContainerDataTVector,class pcl::octree::OctreeContainerEmpty,class pcl::octree::OctreeBase<int,class pcl::octree::OctreeContainerDataTVector,class pcl::octree::OctreeContainerEmpty > >::genOctreeKeyForDataT(int const &,class pcl::octree::OctreeKey &)const " (

[email protected]?OctreePointCloud@UPointXYZ@pcl@@V?[email protected]@[email protected]@V?[email protected]@[email protected]@V?OctreeContainerEmpty@H@42@V?[email protected]@[email protected]?[email protected]
?OctreeContainerDataTVector@H@octree@pcl@@V?[email protected]@[email protected]@@V?[email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@@Z) E:\users\admin\documents\visual studio 2010\Projects\octree 2\test1\test1cpp.obj test1

最開始一直以為是標頭檔案沒有包含完全。最後瞭解到也有可能是依賴項沒有附加完,然後自己在依賴項中加入pcl_octree_debug.lib項,就可以成功編譯了。 由於最開始自己在配置PCL時是在網上搜的普通教程進行配置,故覺得應該有很多人遇到了與自己想通的問題,所以拿出來跟大家分享。 另外今天在用PCL關鍵點的時候也出現了此問題,在查資料的過程中看到一位大佬已經列出了關鍵點需要新增的依賴項,即pcl_keypoints_debug.lib