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!!!
Solved! Go to Solution.
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.
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.