Reputation: 1269
I'm Using MATLAB R2010a
I used this this tutorial in order to call matlab function from C++ and i did every thing said in the tutorial and i compiled the project successfully but when i tried to run it, it requires many dlls which i added them in windows 7 system32:
and I included these files ("libeng.lib" "libmex.lib" "libmx.lib" "libmat.lib") in the project by going to "project properties" -> "Linker" -> "Input" -> "Additional Dependencies"
and i run again it gives me an error "The procedure entry point mxCreateDoubleMatrix_730 could not be located in the dynamic link library libmx.dll"
So what is this error indicate? and how to solve it?
Upvotes: 0
Views: 2095
Reputation: 1531
You don't need to put those files in the System32 directory. All you need to do is add the path
C:\Program Files\MATLAB\R2011a\bin\win64
to your system path (google how to do this for your version of windows -- it is subtly different between XP and Vista/7). If you aren't using the 64bit version of matlab, modify the above accordingly.
Also, make sure you are using the right architecture. If you have a 64bit version of Matlab you will need to be using a 64bit compiler.
Upvotes: 1