# Revision history [back]

The first major thing that I would check would be to ensure that you've included all of the necessary header files in your source file.

 #include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/features/normal_3d.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/filters/passthrough.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>


Next would be to check your manifest.xml for all necessary dependencies:

<depend package="pcl" />
<depend package="pcl_ros" />


The first major thing that I would check would be to ensure that you've included all of the necessary header files in your source file.

 #include <pcl/ModelCoefficients.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/features/normal_3d.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/filters/passthrough.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_types.h>
#include <pcl/segmentation/sac_segmentation.h>


Next would be to check your manifest.xml for all necessary dependencies:

<depend package="pcl" />
<depend package="pcl_ros" />


EDIT: After reading some documentation and playing with Eclipse code-completion, it seems as though KdTree is not under the search namespace.

Thus, change:

pcl::search::KdTree<PointT>::Ptr tree (new pcl::search::KdTree<PointT> ());


To:

pcl::KdTree<PointT>::Ptr tree (new pcl::KdTree<PointT> ());


And then you're all set.