|
-
June 25th, 2010, 11:14 AM
#1
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.
-
June 25th, 2010, 11:36 AM
#2
Re: Matlab engine from C++ dll not found error
 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
-
June 25th, 2010, 12:29 PM
#3
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 ?
-
June 25th, 2010, 02:29 PM
#4
Re: Matlab engine from C++ dll not found error
 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
-
June 25th, 2010, 03:44 PM
#5
Re: Matlab engine from C++ dll not found error
Thank you 
It works now
-
July 25th, 2010, 09:01 PM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|