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.

CCS 莫名其妙的报错

Other Parts Discussed in Thread: HALCOGEN

CCS 编译的时候总是在sys_main.c 的开始注释部分报错,什么都没有它也会报错,很奇怪?这是为什么?

Multiple markers at this line
- #10 "#" not expected here
- #171 expected a declaration
- #1268-D null (zero) character in input line
ignored
- #7 unrecognized token


  • 我发现用HALCOGEN 生成的代码导到工程中,编译没有问题,只要我一动代码就报这个莫名其妙的错误。只是include一个文件就会报错,删掉这个include后还是会报错????????

  • "../source/sys_main.c", line 1: warning #1-D: last line of file ends without a newline
    "../source/sys_main.c", line 1: error #171: expected a declaration
    "../source/sys_main.c", line 1: error #10: "#" not expected here
    "../source/sys_main.c", line 1: error #10: "#" not expected here
    "../source/sys_main.c", line 1: error #10: "#" not expected here
    "../source/sys_main.c", line 1: error #7: unrecognized token
    "../source/sys_main.c", line 1: error #7: unrecognized token
    "../source/sys_main.c", line 1: error #7: unrecognized token
    "../source/sys_main.c", line 1: error #7: unrecognized token
    "../source/sys_main.c", line 1: error #7: unrecognized token

    这个是打印的错误信息。

  • 问题解决了,公司加密系统的问题。