MS C++ 2010 和 mspdb100.dll [英] MS C++ 2010 and mspdb100.dll

查看:19
本文介绍了MS C++ 2010 和 mspdb100.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft 的 C++ 编译器和链接器似乎与 mspdb100.dll 有着奇怪的关系.当从 IDE 运行时,编译器和链接器当然可以正常工作.从命令行运行任何一个时,我都会收到错误消息.

Microsoft's C++ compiler and linker seem to have an odd relationship with mspdb100.dll. When run from the IDE, of course, the compiler and linker work fine. When running either one from the command line, I get an error.

没问题,我找到了 DLL 并将其复制到目录中.现在编译器工作正常,但链接器死了.

No problem, I located the DLL and copied it to the directory. Now the compiler works fine, but the linker dies.

我可以通过将%VS10%Common7IDE"添加到我的 PATH 来解决该问题,但是由于各种原因(性能、系统纯度、OCD 等),我不想这样做.为什么这个设置如此敏感,我还能做些什么来解决它?

I could solve the problem by adding "%VS10%Common7IDE" to my PATH, but for various reasons (performance, system purity, OCD, etc), I don't want to do that. Why is this setup so touchy, and is there anything else I can do to solve it?

推荐答案

尝试在当前 shell 中运行 path oVCinvcvars32.bat first.这应该确保您的命令行设置与 IDE 设置相匹配.

try running path oVCinvcvars32.bat from within your current shell first. This should ensure your command-line setup will match the IDE-setup.

这不是永久性修复——每次启动新 shell 时都需要这样做.

This is not a permanent fix -- you need to do it every time you launch a new shell.

您可能还可以找到某种方法将 .bat 中的所有内容永久添加到环境变量中,但是....就像您问的那样,为什么 MS 安装不这样做已经?

You could probably also find some way to add everything that's in that .bat permanently to the environment variables, but.... like you asked, why the heck doesn't the MS install do that already?

这篇关于MS C++ 2010 和 mspdb100.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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