作者:巨大八爪鱼,文章来源:CSDN博客
如图所示, 源文件目录中haha文件夹下有一个hoho.h头文件。本来要包含这个头文件应该写成#include "haha/hoho.h"的,但是如果写成#include
在左栏“项目名_system”的下一级“项目名”上点击右键,选择Properties命令。请注意是在下图红框处点击右键,而不是绿框处。
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243015-2.png)
找到C/C++ General --> Paths and Symbols,在右边的Includes选项卡上点击Add按钮:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243016-3.png)
点击Workspace按钮:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243017-4.png)
选择haha文件夹:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243018-5.png)
点击OK:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243019-6.png)
点击Apply and Close:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243020-7.png)
现在就能编译通过了:
![](http://xilinx.eetrend.com/files/2022-02/%E5%8D%9A%E5%AE%A2/100557766-243021-8.png)