2013-03-05 85 views
0

當試圖遵循here爲圓筒分割的例子:PCL:平面分割

我抄代碼,但就行不會編譯:

extract.setIndices (inliers_plane); 

我得到的錯誤是:

function pcl::ExtractIndices<pcl::PointXYZ>::applyFilter(std::vector<int, std::allocator<int> >&): error: undefined reference to 'pcl::ExtractIndices<pcl::PointXYZ>::applyFilterIndices(std::vector<int, std::allocator<int> >&)' 

任何想法有什麼不對?

這些都是我鏈接庫:

-lpcl_io 
-lpcl_visualization 
-lpcl_tracking 
-lpcl_common 
-lpcl_surface 
-lpcl_kdtree 
-lpcl_keypoints 
-lpcl_octree 
-lpcl_registration 
-lpcl_sample_consensus 
-lpcl_search 
-lpcl_segmentation 
-lpcl_geometry 
-lpcl_surface 
-lpcl_features 
+1

鏈接那是一個鏈接錯誤,不是編譯錯誤。 – PlasmaHH 2013-03-05 14:01:14

+0

@PlasmaHH謝謝,我發現我沒有鏈接的庫 – Aly 2013-03-05 14:15:21

回答

0

需要對pcl_filters