MATLAB: 32 bit mex file not working in a 64 bit version of matlab

64-bitfilemexmex compiler

Hi I am currently working on a 64 bit version of matlab(2015 ra).I have a mex file prematch_mex.mexw32 .whenever i am runnig the main function it is always showing the same error function not defined.( I have chekd that it is in the path).How to run a mex a 32bit file in a 64 bit version of matlab?
And one more important thing ,i also have a file named prematch_mex.mexglx . wht is this extension = .mexglx ????
I am working on windows

Best Answer

.mexglx files are for Linux.
You cannot use a .mexw32 with 64 bit MATLAB. You will need to get the source recompiled to 64 bit version, or else you will need to use 32 bit MATLAB (which can be run even on 64 bit MS Windows systems.)