Kratos23
Newbie level 1
When i try to compile the file simulateDSM.c i get the following error:
simulateDSM.c
simulateDSM.c(141) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(142) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(147) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(155) : warning C4090: 'function' : different 'const' qualifiers
simulateDSM.c(158) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(170) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(178) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(183) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(363) : error C2371: 'mexFunction' : redefinition; different basic types
C:\PROGRA~1\MATLAB\R2009A\extern\include\mex.h(142) : see declaration of 'mexFunction'
Has anybody fix this issue with the toolbox? I'm using Visual Studio 2008 and Matlab R2009a, thanks.
simulateDSM.c
simulateDSM.c(141) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(142) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(147) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(155) : warning C4090: 'function' : different 'const' qualifiers
simulateDSM.c(158) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(170) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(178) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(183) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
simulateDSM.c(363) : error C2371: 'mexFunction' : redefinition; different basic types
C:\PROGRA~1\MATLAB\R2009A\extern\include\mex.h(142) : see declaration of 'mexFunction'
Has anybody fix this issue with the toolbox? I'm using Visual Studio 2008 and Matlab R2009a, thanks.