How to use dll generated by visual studio in another machine without visual studio installed?

落爺英雄遲暮 提交于 2019-12-20 05:46:19

问题


I have generated dynamic library in visual studio 2012. I want to use that library in another machine, but I don't want to install visual studio in remote machine. I have mex library and dll and I want to run a script which uses both libraries. When I run the script I got the following error. "Missing shared libraries: MSVCR110D.dll, MSVCP110D.dll" Where do I need to place those dll's inorder to run my script file in matlab.


回答1:


MSVCR110D.dll and MSVCP110D.dll are debug libraries. If your library requires them, then that means that your library was built in Debug mode, with all of the debug symbols in it.

Never ship an application/library with debug symbols in them! Instead, if you build your application in Release mode, then it will depend on the non-debug versions instead. If those do not come with Windows normally, you'll need to install the required redist pack.




回答2:


You have to install microsoft redistributable for vs2012, also you should compile your library in release mode.



来源:https://stackoverflow.com/questions/44517353/how-to-use-dll-generated-by-visual-studio-in-another-machine-without-visual-stud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!