Visual Studio 找不到任何标准的 C++ 库文件 [英] Visual studio can't find any standard c++ library file

查看:80
本文介绍了Visual Studio 找不到任何标准的 C++ 库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 vs2010 Ultimate 然后我下载了 2012 RC.它在开始时运行良好,然后在某些时候 .net 框架变得一团糟,所以我卸载了 2012 和 2010(也许我也手动删除了一些文件夹).现在我重新安装了 vs2010 Ultimate,但问题是我认为不存在任何标准库文件,因此我无法包含其中任何一个.

I had vs2010 ultimate then I downloaded 2012 RC. It was working well at the beginning then at some point .net framework get messed up so I uninstalled both 2012 and 2010 (maybe I have manually deleted some folders too). Now I re-Installed vs2010 ultimate and the problem is none of the standard library files exist I figured so as I can't include any of them.

任何帮助如何解决这个问题?

Any help how to fix that?

推荐答案

这是 VS2012 RC/Beta 卸载程序的已知问题.它将注销平台 SDK,删除文件夹,甚至更糟 - 将对所有以前的 VS 版本进行更改.我不确定它更改了哪些注册表设置(围绕 $(VCInstallDir)) - 但它破坏了它.

That's a known problem with uninstaller of VS2012 RC/Beta. It will deregister the platform SDK, delete the folder, and even worse - would make changes for all previous VS versions. I am not sure what registry settings it changes (Around $(VCInstallDir)) - but it breaks it.

唯一的选择是找到相关的头文件、库文件和可执行文件,复制路径,并将其添加到您的 VC2010(和以前的,如果有的话).您可以通过工具->选项中的 VC++ 目录来完成,但这不适用于 VC2010!所以,你最好在你的项目中指定路径.

Only option is to find the relevant header, library and executable files, copy the path, and add it to your VC2010 (and previous, if any). You do it by VC++ Directories in Tools->Options, but that's not available for VC2010! So, you better specify the path in your project itself.

我知道,大订单就是这样 - 或者您只需重新安装操作系统.有一些完整的VS卸载"工具,但我现在找不到了.

Tall order, I know, but it is like that - or you just re-install your OS. There is some "complete VS uninstallation" tool, but I couldn't find it now.

这篇关于Visual Studio 找不到任何标准的 C++ 库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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