pcl-1.7/pcl/point_cloud.h:586:100: error: ‘getMapping’ is neither function nor member function; cannot be declared friend

/usr/local/include/boost/fusion/container/vector/vector.hpp(189): warning: host annotation is ignored on a function(“vector_data”) that is explicitly defaulted on its first declaration

/usr/local/include/boost/fusion/container/vector/vector.hpp(189): warning: device annotation is ignored on a function(“vector_data”) that is explicitly defaulted on its first declaration

/usr/local/include/boost/fusion/container/vector/vector.hpp(276): warning: host annotation is ignored on a function(“vector”) that is explicitly defaulted on its first declaration

/usr/local/include/boost/fusion/container/vector/vector.hpp(276): warning: device annotation is ignored on a function(“vector”) that is explicitly defaulted on its first declaration

/usr/include/pcl-1.7/pcl/point_cloud.h:586:100: error: template-id ‘getMapping’ used as a declarator
friend boost::shared_ptr& detail::getMapping(pcl::PointCloud &p);
^
/usr/include/pcl-1.7/pcl/point_cloud.h:586:100: error: ‘getMapping’ is neither function nor member function; cannot be declared friend
cc1plus: error: expected ‘;’ at end of member declaration
/usr/include/pcl-1.7/pcl/point_cloud.h:586:111: error: expected ‘)’ before ‘&’ token
CMake Error at ndt_gpu_generated_NormalDistributionsTransform.cu.o.cmake:266 (message):
Error generating file
/home/cicv/autoware-1.11.0/ros/build/ndt_gpu/CMakeFiles/ndt_gpu.dir/src/./ndt_gpu_generated_NormalDistributionsTransform.cu.o

make[2]: *** [CMakeFiles/ndt_gpu.dir/src/ndt_gpu_generated_NormalDistributionsTransform.cu.o] Error 1
make[1]: *** [CMakeFiles/ndt_gpu.dir/all] Error 2
make: *** [all] Error 2

Failed <<< ndt_gpu [ Exited with code 2 ]

Thanks for your question. However we ask that you please ask questions on http://answers.ros.org following our support guidelines: http://wiki.ros.org/Support

ROS Discourse is for news and general interest discussions. ROS Answers provides a forum which can be filtered by tags to make sure the relevant people can find and/or answer the question, and not overload everyone with hundreds of posts.