Hello everyone,

I try to simulate FASTv8 in Simulink desktop real time. I get always the following error.

Please, has someone an idea how could I solve this problems? thank you

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:245:28: error: typedef redefinition with different types (‘struct mxArray_tag’ vs ‘real_T’ (aka ‘double’))

typedef struct mxArray_tag mxArray;

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src\rt_matrx.h:41:18: note: previous definition is here

typedef real_T mxArray;

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:265:18: error: typedef redefinition with different types (‘CHAR16_T’ (aka ‘unsigned short’) vs ‘real_T’ (aka ‘double’))

typedef CHAR16_T mxChar;

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src\rt_matrx.h:44:16: note: previous definition is here

typedef real_T mxChar;

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:272:5: error: redefinition of enumerator ‘mxUNKNOWN_CLASS’

mxUNKNOWN_CLASS = 0,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:14:2: note: previous definition is here

mxUNKNOWN_CLASS = 0,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:273:5: error: redefinition of enumerator ‘mxCELL_CLASS’

mxCELL_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:15:2: note: previous definition is here

mxCELL_CLASS = 1,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:274:5: error: redefinition of enumerator ‘mxSTRUCT_CLASS’

mxSTRUCT_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:16:2: note: previous definition is here

mxSTRUCT_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:275:5: error: redefinition of enumerator ‘mxLOGICAL_CLASS’

mxLOGICAL_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:17:2: note: previous definition is here

mxLOGICAL_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:276:5: error: redefinition of enumerator ‘mxCHAR_CLASS’

mxCHAR_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:18:2: note: previous definition is here

mxCHAR_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:278:5: error: redefinition of enumerator ‘mxDOUBLE_CLASS’

mxDOUBLE_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:20:2: note: previous definition is here

mxDOUBLE_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:279:5: error: redefinition of enumerator ‘mxSINGLE_CLASS’

mxSINGLE_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:21:2: note: previous definition is here

mxSINGLE_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:280:5: error: redefinition of enumerator ‘mxINT8_CLASS’

mxINT8_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:22:2: note: previous definition is here

mxINT8_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:281:5: error: redefinition of enumerator ‘mxUINT8_CLASS’

mxUINT8_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:23:2: note: previous definition is here

mxUINT8_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:282:5: error: redefinition of enumerator ‘mxINT16_CLASS’

mxINT16_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:24:2: note: previous definition is here

mxINT16_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:283:5: error: redefinition of enumerator ‘mxUINT16_CLASS’

mxUINT16_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:25:2: note: previous definition is here

mxUINT16_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:284:5: error: redefinition of enumerator ‘mxINT32_CLASS’

mxINT32_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:26:2: note: previous definition is here

mxINT32_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:285:5: error: redefinition of enumerator ‘mxUINT32_CLASS’

mxUINT32_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:27:2: note: previous definition is here

mxUINT32_CLASS,

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:286:5: error: redefinition of enumerator ‘mxINT64_CLASS’

mxINT64_CLASS,

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:28:2: note: previous definition is here

mxINT64_CLASS, /* place holder - future enhancements */
^
In file included from …/FAST_SFunc.c:28:
In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:
C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:287:5: error: redefinition of enumerator ‘mxUINT64_CLASS’
mxUINT64_CLASS,
^
C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:29:2: note: previous definition is here
mxUINT64_CLASS, /* place holder - future enhancements

*/*

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:290:5: error: redefinition of enumerator ‘mxOBJECT_CLASS’

mxOBJECT_CLASS, /keep the last real item in the list */

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:290:5: error: redefinition of enumerator ‘mxOBJECT_CLASS’

mxOBJECT_CLASS, /

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:32:2: note: previous definition is here

mxOBJECT_CLASS

^

In file included from …/FAST_SFunc.c:28:

In file included from C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include\mex.h:51:

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include/matrix.h:299:1: error: typedef redefinition with different types (‘enum mxClassID’ vs ‘enum mxClassID’)

mxClassID;

^

C:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/rt_mxclassid.h:33:3: note: previous definition is here

} mxClassID;

^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

gmake: *** [FAST_SFunc.obj] Error 1

Thanks in advance for the help

David