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的predefined symbol或opts文件中,为什么不能定义一个头文件?

在我的代码中,有如下代码

#ifndef  BDB_ZCL_TYPE_CLUSTER
#define  BDB_ZCL_TYPE_CLUSTER  "bdb_zcl_type_cluster.c"
#endif

#include BDB_ZCL_TYPE_CLUSTER

但是我想在不同的project中把BDB_ZCL_TYPE_CLUSTER替换掉,因为bdb_zcl_type_cluster.c是一个公共文件,在predefined symbol中添加( BDB_ZCL_TYPE_CLUSTER="bdb_zcl_type_cluster.c"),编译报错。为什么IAR中可以支持这种,但是CCS中缺不支持

x 出现错误。请重试或与管理员联系。