CW6.3 for ColdfireV1 std library error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW6.3 for ColdfireV1 std library error

Jump to solution
886 Views
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!!!

 

Labels (1)
0 Kudos
1 Solution
402 Views
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.

View solution in original post

0 Kudos
1 Reply
403 Views
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 Kudos