I have one .h file lets call it sys_mem.h, this file is inluded in another internal.h file and this internal.h is inlcuded in s function created via legacy code in matlab.
Building with 'Microsoft Visual C++ 2017 (C)'.
Error using mex
D:\common_gen\SYS\sys_mem.h(39): error C2371: 'size_t': redefinition; different
D:\algo\my_folder\misc.c: note: see declaration of 'size_t'
composition of external.h file:
line no 39 mentioned in the error from sys_mem.h is:
typedef unsigned int size_t;
Note: misc.c includes internal.h and internal.h includes sys_mem.h.
could anyone help me regarding this.
and one more thing is observed that the above mentioned error is not observed in MATLAB2010b.
Is it related with MSVS as it 2010b it was VS2010 and here it is 2017.