Visual Studio版本依赖 [英] Visual studio version dependency

查看:95
本文介绍了Visual Studio版本依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有2个VC ++项目编译成DLL( projA projB )。这两个项目都依赖于其他DLL。

projA 取决于 depA1.dll depA2.dll - 所有这些dll都是在VS2008中编译的。

projB 取决于 projA depB1.dll depB2.dll 并在VS2012中编译( projA 除外)使用VS2008)。



视觉工作室版本什么时候成为依赖项,所以我需要使用相同版本的VS构建所有dll?

如果在 projB 我使用LoadLibrary加载 projA 而不是链接它,这是否重要?



谢谢。

Hi,
I have 2 VC++ projects compiling into DLLs (projA, projB). Both projects have dependencies on other DLLs.
projA depends on depA1.dll and depA2.dll - all those dlls are compiled in VS2008.
projB depends on projA, depB1.dll and depB2.dll and are compiled in VS2012 (except projA which was compiled with VS2008).

When does the visual studio version become a dependency by itself, so I need to build all dlls using the same version of VS?
Does this matter if in projB i load projA using LoadLibrary instead of linking with it?

Thanks.

推荐答案

hi,

每次发布VisualStudio时,都会对编译器和相关的CRT dll进行更改(称为Visual C ++ Redistributables),所以是的,你建立dll的VS确实很重要。最好使用相同的编译器构建所有dll。



希望这有帮助!!

with every release of VisualStudio, changes are made to the compiler and the related CRT dlls (called Visual C++ Redistributables), so yes it does matter which VS you built the dlls with. Its better to have all the dlls built with the same compiler .

hope this helps !!


当然Visual Studio本身不是依赖;它只是一个不参与运行时的IDE。



同时,我不知道你在用什么。您可以创建所谓的Visual C ++ Redistributable for Visual Studio的依赖项。通过此软件包的许可,您可以随应用程序自由重新分发。请参阅,例如: https://www.microsoft.com/en-us/ download / details.aspx?id = 29 [ ^ ]。



您可以找到所有VS版本的此类软件包。顺便说一句,如果您对依赖项有疑问,可以使用Microsoft Dependency Walker,depends.exe:

http://en.wikipedia.org/wiki/Dependency_Walker [ ^ ],

http://wiki.imacros.net/Dependency_Walker [< a href =http://wiki.imacros.net/Dependency_Walkertarget =_ blanktitle =New Window> ^ ]。



-SA
Of course Visual Studio itself is not a dependency; it is just an IDE which does not participate in runtime.

At the same time, I don't know what you are using. You could have created the dependency of so called "Visual C++ Redistributable for Visual Studio". By the license for this package, you can freely re-distribute it with your application. Please see, for example: https://www.microsoft.com/en-us/download/details.aspx?id=29[^].

You can find such packages for all VS versions. By the way, if you have doubts on your dependencies, you can use Microsoft Dependency Walker, depends.exe:
http://en.wikipedia.org/wiki/Dependency_Walker[^],
http://wiki.imacros.net/Dependency_Walker[^].

—SA


这篇关于Visual Studio版本依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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