Effacer les filtres
Effacer les filtres

Error using mex (no description of error)

2 vues (au cours des 30 derniers jours)
Christopher  Davis
Christopher Davis le 22 Jan 2016
Hey all,
So I'm trying to compile an example .c program from http://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html and I get the following message:
>> mex yprime.c
Building with 'MinGW64 Compiler (C)'.
Error using mex
With no other description... I don't even know where to start looking.
  10 commentaires
Christopher  Davis
Christopher Davis le 29 Jan 2016
Modifié(e) : Christopher Davis le 29 Jan 2016
Sorry Walter, at the time I did not realize these two issues were linked. So, for some reason any system command that I put into matlab is returning an empty string.
>> command = 'pwd';
>> [status, cmdout] = system(command);
in workspace:
cmdout=''
command='pwd'
status=-1
I have not used dependency walker before. I got it and ran matlab through it, but I don't know how to make sense of the output. There's so many messages... I hesitate to paste it here.
Also I checked and both of those entries appear in the matlab path and the environment variable PATH.
OK, I think* this is the message I get from dependency walker associated with the call to mex:
LoadLibraryA("c:\program files\matlab\r2015b\bin\win64\mex_builtin.dll") called from "LIBUT.DLL" at address 0x000000000450410D.
Loaded "MEX_BUILTIN.DLL" at address 0x000000001E270000. Successfully hooked module.
Loaded "LIBMEXCMD.DLL" at address 0x000000001E2B0000. Successfully hooked module.
DllMain(0x000000001E2B0000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "LIBMEXCMD.DLL" called.
DllMain(0x000000001E2B0000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "LIBMEXCMD.DLL" returned 1 (0x1).
DllMain(0x000000001E270000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "MEX_BUILTIN.DLL" called.
DllMain(0x000000001E270000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "MEX_BUILTIN.DLL" returned 1 (0x1).
LoadLibraryA("c:\program files\matlab\r2015b\bin\win64\mex_builtin.dll") returned 0x000000001E270000.
GetProcAddress(0x000000001E270000 [MEX_BUILTIN.DLL], "QueryMLFcnTable_mex_builtin") called from "LIBUT.DLL" at address 0x0000000004504819 and returned 0x000000001E28B7D0.
GetProcAddress(0x000000001E270000 [MEX_BUILTIN.DLL], "MLInitialize_mex_builtin") called from "LIBUT.DLL" at address 0x0000000004504819 and returned 0x000000001E28B7A0.
GetProcAddress(0x000000001E270000 [MEX_BUILTIN.DLL], "MLTerminate_mex_builtin") called from "LIBUT.DLL" at address 0x0000000004504819 and returned 0x000000001E28B7C0.
Loaded "" at address 0x000000001E390000. Successfully hooked module.
Unloaded "" at address 0x000000001E390000.
> throw_segv_longjmp_seh_filter()
throw_segv_longjmp_seh_filter(): C++ exception
< throw_segv_longjmp_seh_filter() = EXCEPTION_CONTINUE_SEARCH
Christopher  Davis
Christopher Davis le 5 Fév 2016
The attached file is a profile of matlab from dependency walker after trying to run
>> mex yprime.c
I have no experience with dependency walker, so if someone who does see this and has the time to look at it, please do.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by