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编译器存在一个bug,请TI马上修复!!!



CCS编译在编译28065的程序时,一个源文件实现某函数的定义,一个头文件实现声明,另一个源文件调用函数。

如果声明和调用格式一致,但是定义不一致,编译器不报错!!!!

例如:

<cfile1.c>

void func(int a)//函数定义带参数

{。。。}

<cfile.h>

void func(void);//函数声明不带参数

<cfile2.c>

#include "cfile.h"

mainfun()

{

....

    func();//调用也不带参数

....

}

如此编译器不会报警,下载后运行就乱跑了!!!!