error: #error PCL requires C++14 or above

created at 11-24-2021 views: 23

An error is reported when running a file with the PCL library #error PCL requires C++14 or above

solution

Find all the function packages that depend on PCL in the project, and change their corresponding CMakelists.txt files

The specific modification method is in

add_compile_options(-std=c++11)

Add a line of code under this line of code

set(CMAKE_CXX_STANDARD 14)
created at:11-24-2021
edited at: 11-24-2021: