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.

hw_prcm_data.c源文件CATTR宏定义



在工程中使用到了hw_prcm_data.c文件,编译过程中出现

../hw_prcm_data.c", line 73: error #80: expected a type specifier
"../hw_prcm_data.c", line 73: error #142-D: unnamed prototyped parameters not allowed when body is present

对应报错代码为:CATTR(prcmVoltageDomainElems)

在<hw_prcm_data.c>的头文件<hw_prcm_data.h>所包含的头文件<hw_prcm_modinc.h>中已经有关于CATTR的宏定义:#define CATTR(name) ATTR(".const:"#name)

请问什么原因会导致上述问题?该如何解决

谢谢