源文件,如何在makefile中添加包含路径

2025-02-27 08:10:59
推荐回答(1个)
回答1:

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