Error in <string.h>: Typedef redefinition with different typ
Posted: 18 Dec 2016 12:10
The include file 'string.h' that is provided with the Z-Uno (version 2.0.6 and 2.0.7) contains the following type definition:
After including <string.h> into my program the compilation generates the following error:
Since my program is not defining the size_t type I guess this type is defined by default by the compiler, and string.h is redefining it differently.
So the string.h include file that is provided with the Z-Uno package seems be incompatible with the compiler.
Code: Select all
typedef unsigned int size_t;
Code: Select all
error:typedef redefinition with different types ('unsigned int' vs 'unsigned short')
So the string.h include file that is provided with the Z-Uno package seems be incompatible with the compiler.