Date: Jan 22, 2013 12:11 AM
Author: amira ali
Subject: Re: build mex file error


please can anyone help me urgently
"amira ali" wrote in message <kdl2ko$42d$1@newscl01ah.mathworks.com>...
>
> when i run mex siftdescriptor.c in windowes 7 64 bit and matlab r2011 a give me this error, help me please ?
> siftdescriptor.c
> c:\users\admin\appdata\roaming\mathworks\matlab\r2011a\sift_test\mexutils.c(62) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
> c:\users\admin\appdata\roaming\mathworks\matlab\r2011a\sift_test\mexutils.c(63) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
> c:\users\admin\appdata\roaming\mathworks\matlab\r2011a\sift_test\mexutils.c(86) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
> c:\users\admin\appdata\roaming\mathworks\matlab\r2011a\sift_test\mexutils.c(87) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
> siftdescriptor.c(86) : warning C4005: 'min' : macro redefinition
> C:\Users\admin\AppData\Roaming\MathWorks\MATLAB\R2011a\sift_test\stdlib.h(855) : see previous definition of 'min'
> siftdescriptor.c(87) : warning C4005: 'max' : macro redefinition
> C:\Users\admin\AppData\Roaming\MathWorks\MATLAB\R2011a\sift_test\stdlib.h(854) : see previous definition of 'max'
> siftdescriptor.c(109) : warning C4305: '+=' : truncation from 'double' to 'float'
> siftdescriptor.c(110) : warning C4305: '-=' : truncation from 'double' to 'float'
> siftdescriptor.c(137) : error C2065: 'FLT_EPSILON' : undeclared identifier
> siftdescriptor.c(189) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
> siftdescriptor.c(311) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(312) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(392) : warning C4244: 'initializing' : conversion from 'const double' to 'const float', possible loss of data
> siftdescriptor.c(451) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(456) : warning C4244: 'initializing' : conversion from 'int' to 'const float', possible loss of data
> siftdescriptor.c(461) : warning C4244: 'function' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(462) : warning C4244: 'function' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(464) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(465) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
> siftdescriptor.c(500) : warning C4305: '=' : truncation from 'double' to 'float'
>
> C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Compile of 'siftdescriptor.c' failed.
>
> ??? Error using ==> mex at 208
> Unable to complete successfully.
>
> Error in ==> sift_compile at 37
> mex('siftdescriptor.c',opts{:}) ;