gpt4 book ai didi

c - IAR EWARM 中的奇怪错误 "Error[Pe147]: declaration is incompatible with "__interwork __softfp"

转载 作者:行者123 更新时间:2023-11-30 15:48:51 27 4
gpt4 key购买 nike

我遇到了这个超出我知识范围的错误:

Error[Pe147]: declaration is incompatible with "__interwork __softfp char *Get_Language_String(enum Lang_Index, enum String_Index)" (declared at line 26 of "E:\Freescale\Freescale_MQX_4_0\demo\ E:\Freescale\Freescale_MQX_4_0\demo\DialogD13_Demo_v5\Strings.c 79 

DialogD13_Demo_v5\Strings.h")

我的代码中有这个:

strings.h:
extern char *Get_Language_String(enum Lang_Index Lang_Ind, enum String_Index Str_Ind);

strings.c:
char *Get_Language_String(enum Lang_Index Lang_Ind, enum String_Index Str_Ind)
{
return languages[Lang_Ind][Str_Ind];
}

出了什么问题?

提前致谢,

问候, bool 。

最佳答案

感谢您的回复...

是定义的顺序导致了此错误。

strngs.h 中的 extern 子句位于枚举定义之前...

问候,

批量。

关于c - IAR EWARM 中的奇怪错误 "Error[Pe147]: declaration is incompatible with "__interwork __softfp",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16618211/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com