2013-03-05 108 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