CW6.3 for ColdfireV1 std library error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CW6.3 for ColdfireV1 std library error

跳至解决方案
1,362 次查看
bingo23
Contributor I

Hi Everbody,

 

Whenever I try to compile a ref code, the foll error msg appears:

Error   : identifier 'memset(void *, int, unsigned int)' redeclared as '__regabi void * (void *, int, unsigned long)'

cstring line 35   _C void * _EWL_CDECL memset(void *, int, size_t) _EWL_CANT_THROW;

 

Is it because the ref code was done in a previous version than the one I'm using?

How do I solve this?

It would be really helpful if someone could help me understand the meaning of this msg.

 

Thanks in advance!!!

 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
878 次查看
kef
Specialist I

Compiler sopplied include file "string.h" declares memset function as

 

 _C void * _EWL_CDECL memset(void *, int, size_t) _EWL_CANT_THROW;

 

Now in your code compiler finds memset is defined not the same, it's prototype is redeclared like this

 

__regabi void memset(void *, int, unsigned long)

 

Maybe comment out memset in your code and use one, supplied in compiler libs? Hope it will work.

在原帖中查看解决方案

0 项奖励
回复
1 回复
879 次查看
kef
Specialist I

Compiler sopplied include file "string.h" declares memset function as

 

 _C void * _EWL_CDECL memset(void *, int, size_t) _EWL_CANT_THROW;

 

Now in your code compiler finds memset is defined not the same, it's prototype is redeclared like this

 

__regabi void memset(void *, int, unsigned long)

 

Maybe comment out memset in your code and use one, supplied in compiler libs? Hope it will work.

0 项奖励
回复