如何在未安装Visual Studio的另一台计算机上使用Visual Studio生成的dll? [英] How to use dll generated by visual studio in another machine without visual studio installed?

查看:70
本文介绍了如何在未安装Visual Studio的另一台计算机上使用Visual Studio生成的dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Studio 2012中生成了动态库.我想在另一台计算机上使用该库,但是我不想在远程计算机上安装Visual Studio. 我有mex库和dll,我想运行同时使用这两个库的脚本.当我运行脚本时,出现以下错误. 缺少共享库:MSVCR110D.dll,MSVCP110D.dll" 我需要在哪里放置这些dll以便在matlab中运行我的脚本文件.

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.

推荐答案

MSVCR110D.dllMSVCP110D.dll是调试库.如果您的库需要它们,那么这意味着您的库是在Debug模式下构建的,其中包含所有调试符号.

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.

绝不要运送其中带有调试符号的应用程序/库!相反,如果您以发布模式构建应用程序,那么它将取决于非调试版本.如果Windows通常没有提供这些软件包,则需要安装所需的Redist软件包.

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.

这篇关于如何在未安装Visual Studio的另一台计算机上使用Visual Studio生成的dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆