gpt4 book ai didi

c++ - 在旧版 Visual Studio 中开发的链接库

转载 作者:太空宇宙 更新时间:2023-11-04 12:14:00 24 4
gpt4 key购买 nike

我正在使用 Visual Studio 2010,但收到了为 Visual Studio 2008 开发的外部库。如果我尝试将该库链接到我的程序中,我会收到以下错误:

Activation context generation failed for "Tutorial.exe". 
Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",
publicKeyToken="1fc8b3b9a1e18e3b",type="win3

有什么方法可以链接库吗?

最佳答案

从报错信息来看,似乎你链接的外部库的调试版本需要VS2008运行时库的调试版本。请注意,Microsoft 不分发其 VC 运行时库的调试版本,因此您必须

a) 安装 VS2008 本身,以便将 VS2008 运行时库的调试版和发布版安装到系统中。

b) 安装 VS2008 可再分发包,并在您的项目中仅使用外部库的发布版本。

关于c++ - 在旧版 Visual Studio 中开发的链接库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8518081/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com