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 a line of code to this line of code


As shown in the figure

Read More: