解决问题
像大多数人一样,我开始网上冲浪,来找到解决问题的方法,功夫不负有心人,我终于找到了,见连接http://zedboard.org/content/unresolved-inclusion-xparametersh。
这个小伙伴是要向SDK中导入Xilinx官方自带的头文件xparameters.h文件。hockeyman1972同志给了他一些步骤,见下
1)Right-click on the standalone_bsp_0 project and select Properties from the bottom of the drop-down list.
2)Select C/C++ Include Paths (on left).
3)Click the Add Include Path from Workspace button.
4)Select the path standalone_bsp_0/ps7_cortexa9_0/include and click the OK button.
5)Click the OK button to close the Properties panel. 于是,我便知道怎么做了—— 1)首先打开SDK中的板级支持包BSP文件夹,右击找到最底下的Properties,见下图。 2)在Properties对话框中选中C/C++ include paths and symbols,见下图左侧。 3)在Properties对话框中,选中左侧的add include path from workspace,如上图右侧所示。
需要注意的是,本次添加的头文件是在本次工程目录中,所以是add include path from workspace,若是其他路径,则是add external path了 4)最后则是保存设置,运行程序后软件可以找到头文件了。