This error was coming up because the mex file was compiled under an earlier version of matlab, the actual issue being compatibility. So I can run the code without dll files in matlab 2013a in which it was actually compiled.
Invalid mex file error
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Maria Kanwal
el 21 de Mayo de 2016
Editada: Nemat Ab Azar
el 20 de Mayo de 2018
I am getting "invalid mex file" error while running some code in matlab (64 bit on Windows 7(64 bit)). After some googling I learned that I need to download all dependency dll files and put them with that mex file. So I did (used dependency walker to check for dependencies) but the issue remains, dependency walker says different CPU types dll files. I can not find 64 bit version of some dll files. What can I do to resolve the issue? Dependency walker's snapshot is here:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164743/image.png)
0 comentarios
Respuesta aceptada
Más respuestas (1)
Nemat Ab Azar
el 20 de Mayo de 2018
Editada: Nemat Ab Azar
el 20 de Mayo de 2018
To do solve this problem, you must change the location of Matlab "start in" shortcut. for example, you can move it into my document folder.
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!