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:
- icudt24l.dll
- icuin24.dll
- icuio24.dll
- icuuc24.dll
- icuuc44.dll
- libmx.dll
- libut.dll
- libz.dll
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?
You don’t need to put those files in the System32 directory. All you need to do is add the path
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.