Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
build mex file error

Subject: build mex file error

From: amira ali

Date: 22 Jan, 2013 03:56:08

Message: 1 of 3


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{:}) ;

Subject: build mex file error

From: amira ali

Date: 22 Jan, 2013 05:11:07

Message: 2 of 3


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{:}) ;

Subject: build mex file error

From: Bruno Luong

Date: 22 Jan, 2013 07:35:08

Message: 3 of 3

"amira ali" wrote in message <kdl71b$hr1$1@newscl01ah.mathworks.com>...
>
> please can anyone help me urgently

If you get lost in a bunch of messages, might I point to you the relevant one:

> > siftdescriptor.c(137) : error C2065: 'FLT_EPSILON' : undeclared identifier

Bruno

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us