The problem is that it doesn't recognise inheritance.
For example, for this function seg.setInputCloud (cloud.makeShared ());, it doesn't recognize inheritance with class pcl::PCLBase and so it doesn't provide function setInputCloud.
CodeBlock reports as: /home/.../.../.../main.cpp|49|undefined reference to `pcl::PCLBase<pcl::PointXYZ>::setInputCloud(boost::shared_ptr<pcl::PointCloud<pcl::PointXYZ> const> const&)'|
I also add #include <pcl/pcl_base.h> but nothing!!
Me, I'm not expert on Lixux, could you help me to solve?