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.

CCS5.5 define 问题

请问CCS5.5 define 在.h文件中的定义符号不可以在 包含该头文件中的.c文件调用吗。

例如:xxx.h中定义 #define PI 3.1415

.c文件中内容为:  

include "xxx.h"

   int     xxx=PI;

编译器报错  请问可以怎样解决呢?


 Thank You!