我尝试在linux下编译别人写好的c++文件包,它的目录结构是这样的。
其中c++文件全部放在src里面。hpp文件全部放在include里面
当我用下面的命令去编译它的时候,发现他报如下的错误
我应该执行怎样的命令才能使它两个文件的内容都编译到?
大家讲道理2017-04-17 16:20:24
-I
Set the include path. -I
设置include路径。
例如src和include同级,你在src目录下编译,加-I "../include"
-I "../include"
. Then you find that there are more dependencies, so you keep adding them. 🎜