This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DPLibv3_4Template-F2803x编译新问题

按照模版 

DPLibv3_4Template-F2803x建立工程,如果编译的话,会出现 错误:

Severity and Description Path Resource Location Creation Time Id
could not open source file "IQmathLib.h" sxdy-120 ProjectName-Main.c line 57 1358918848515 2380

之后把 IQmathLib.h文件复制到工程目录include下,并且在工程属性里加上头文件目录include,编译后出现很多错误。见下图,这是怎么回事?怎么解决

  • 你好,第一个问题的原因是因为工程编译的时候找不到IQmath.h的路径,一般在CCS的编译属性选项中c2000 compiler>include option中的add dir to # include……中去修改路径,找到正确的include文件夹路径。

    第二个问题,如果你要把iqmath.h直接复制到工程里面,那就直接复制到工程的根目录下,不要在include下面,因为你添加include“IQmath.h”,编译的时候是直接到根目录下搜索。

  • 我添加工程根目录下,也出现那些错误

  • linsheng,

            我的建议是,先按我的第一种方法,从属性界面把相关的编译选项路径重新设置好。

            另外,把源文件中添加这个头文件的代码传上来看一下。