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.

为什么"DSP2803x_device.h“已在include中,为何在编译时还是找不到此头文件 could not open source file "DSP2803x_Device.h"

如上

  • 通常有两种状况:

    1. 该文件属性被设置为了“只读”;

    2. 虽然文件是路径下,但编译选项中并没有设置,从而导致编译器不能根据正确路径查找该文件。

    如果是后者,请在include path选项里加入该文件对应的路径。

  • 已经加进去了啊

  • Yuqiao Hu 说:

    已经加进去了啊

    你是怎么添加的,能说一下吗?

  • 先前是通过file-properties添加的,后来是通过project-properties添加,不过现在又报新的错了

    Description Resource Path Location Type
    unresolved symbol _main, first referenced in D:\DSPCCS\ccsv5\tools\compiler\c2000_6.2.0\lib\rts2800_ml.lib<args_main.obj> yiixang C/C++ Problem

    Description Resource Path Location Type
    <a href="file:/D:/DSPCCS/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain yiixang C/C++ Problem

  • Yuqiao Hu 说:

    先前是通过file-properties添加的,后来是通过project-properties添加,不过现在又报新的错了

    Description Resource Path Location Type
    unresolved symbol _main, first referenced in D:\DSPCCS\ccsv5\tools\compiler\c2000_6.2.0\lib\rts2800_ml.lib<args_main.obj> yiixang C/C++ Problem

    Description Resource Path Location Type
    <a href="file:/D:/DSPCCS/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain yiixang C/C++ Problem

    最好使用project-properties或者工程右键,不过用file-properties,如果是当前的工程的话,应该也没有问题,最终设定的是当前工程就好。

    你的这个新错误的原因是没有main主函数。