Invalid MEX-file using MCR R2012b 32-bit
Show older comments
Hello -
I am using a 64-bit computer with Windows 7. A collaborator compiled the files on a 32-bit computer. A second collaborator was able to use the MCR R2012b 32-bit successfully with the files; however, we are getting the error message:
Invalid MEX-file 'C:\Users\AAMEFF~1\AppData\Local\Temp\1\aa|mcrCache8.0\ FFALoc0\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw32\:
Error in WhiteIndex (line 31)
Error in FFALocalizer_new (line 10)
MATLAB:invalidMEXFile
Note: We have tried to use the 64-bit MCR (with the files compiled on a 64-bit computer) to no avail.
Any suggestions?
Thanks!
Answers (1)
Walter Roberson
on 18 Mar 2013
0 votes
mex files compiled for 32 bit cannot be used from 64 bit MATLAB. You could, however, install the 32 bit version of MATLAB as well, and use it from the 32 bit version.
2 Comments
Kelly
on 18 Mar 2013
Walter Roberson
on 18 Mar 2013
Ah. Use the 32 bit MCR. Then download Dependency Walker from the internet and use it to analyze the program.
I suspect you need to install a compiler runtime library, probably one of the Microsoft Visual C Runtime libraries.
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!