Tag Archives: ROS_PCL

error: #error PCL requires C++14 or above [Solved]

Running a file with a PCL library reports an error #error PCL requires C + + 14 or above

Solution: find all PCL dependent function packages in the project and change their corresponding cmakelists.txt file

For specific modification methods, see

add_compile_options(-std=c++11)

Add a line of code to this line of code

set(CMAKE_CXX_STANDARD 14)

As shown in the figure