Why does my standalone application that calls SORTROWS not work on a machine that does not have MATLAB installed?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 27 Jun. 2009
Bearbeitet: MathWorks Support Team
am 11 Jun. 2018
I have the following code:
function testexe
a=ceil(10*rand(3,10));
sortrows(a);
I compiled in MATLAB using the following command
mcc -m testexe.m -v
Now when I distribute and run my application, testexe.exe, along with the mglinstaller.exe, on a client machine that does not have MATLAB, installed I get the following error:
Failed to find MEX-File on path : sortrowsc.dll.
EXITING
Sometimes the error is referring to another MEX-file sortcellchar.dll.
Akzeptierte Antwort
MathWorks Support Team
am 27 Jun. 2009
This is a bug in the MGLINSTALLER with the C/C++ Math Library 2.2. This problem has been fixed in MATLAB C/C++ Math Library 2.4 (R13).
If you are using a previous version, see the information below:
This error occurs because the client computer does not have the MEX-file sortrowsc.dll. This MEX-file does not come packaged with the mglinstaller. In order to distribute a stand-alone application that calls sort rows, sortrowsc.dll and/or sortcellchar.dll, must also be distributed. The libraries can be placed in the same directory as the executable or in the bin\win32 directory created by the MGLINSTALLER.
0 Kommentare
Weitere Antworten (1)
Sriram Narayanan
am 26 Feb. 2015
Bearbeitet: MathWorks Support Team
am 11 Jun. 2018
Hello Davide,
As the article mentioned, the libraries might need to be placed in the same directory as the executable or in the bin\win32 directory created by the MGLINSTALLER. Did you try that?
If you are still facing the issue, please contact MathWorks Technical Support.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!