你源代码包含头文件的方式也要和你的CFLAGS的路径配合,举例:1 源文件:#include makefile: -I/test/ROS/ros/fuerte/include/2 源文件:#include makefile: -I/test/ROS/ros/fuerte/include/pcl估计你源文件是1的情况,makefile又是2的情况,所一出问题了。