Matlab engine from C++ dll not found error
I am trying to access the matlab engine from C++. I have followed the guide provided by mathworks to set up and compile their demo code using visual studio (http://www.mathworks.com/support/sol...ution=1-78077S). It compiles without errors however when i run the application i receive the message "This application failed to start because libmx.dll was not found. Re-installing the application may fix this problem".
Thanks in advance.
Re: Matlab engine from C++ dll not found error
Quote:
Originally Posted by
Luco
I am trying to access the matlab engine from C++. I have followed the guide provided by mathworks to set up and compile their demo code using visual studio (
http://www.mathworks.com/support/sol...ution=1-78077S). It compiles without errors however when i run the application i receive the message "This application failed to start because libmx.dll was not found. Re-installing the application may fix this problem".
So where is libmx.dll? The problem is obviously that the DLL doesn't exist, is not accessible in a directory in your PATH, or is not where your executable resides.
Regards,
Paul McKenzie
Re: Matlab engine from C++ dll not found error
The dll is not in my directory, it is in matlabroot\R2010a\bin\win32. How do I set up visual studio so the executable knows where it needs to look for the DLL ?
Re: Matlab engine from C++ dll not found error
Quote:
Originally Posted by
Luco
The dll is not in my directory, it is in matlabroot\R2010a\bin\win32. How do I set up visual studio so the executable knows where it needs to look for the DLL ?
Add that directory to your PATH environment variable.
Regards,
Paul McKenzie
Re: Matlab engine from C++ dll not found error
Thank you :)
It works now
Re: Matlab engine from C++ dll not found error
Another option is to add the directory to the LD_LIBRARY_PATH environment variable.
Regards
Jai Pillai
http://www.umiacs.umd.edu/~jsp