havakok
havakok

Reputation: 1247

mex file compiled successfuly. DependencyWalker cannot find many of the dlls

I have compiled a mex file using MATLAB. I am having trouble since every time I try to run the code, MATLAB crushes.

I have tried using feval() function with a mexhost in order to separate the processes and debug, following this guide. When I am executing using feval(mh,'functionName',input), all I am getting is:

Invalid C++ MEX-file 'test_c'

However, when I am executing using feval(mh,functionName,input) I am getting an nrhs of size 0.

I have followed throw with this guide and used the DependancyWalker utility to get the following result: enter image description here

A lot of the DLLs are missing. Even the basic LIBMEX.DLL can't be found. Am I doing something wrong here? How do I debug?

Upvotes: 1

Views: 161

Answers (1)

Eric Johnson
Eric Johnson

Reputation: 714

Probably some of MATLAB's folders aren't in your system path variable (%PATH% on Windows).

Upvotes: 1

Related Questions