简体   繁体   English

Visual Studio无法找到任何标准的c ++库文件

[英]Visual studio cant find any standard c++ library file

Well I had vs2010 ultimate then i downloaded 2012 RC. 好吧,我有vs2010终极然后我下载了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). 它在开始时运行良好,然后在某些时候.net框架搞砸了所以我卸载了2012年和2010年(也许我已经手动删除了一些文件夹)。 Now I re-Installed vs2010 ultimate and the problem is none of the standard library files exist I figured so as I cant include any of them. 现在我重新安装vs2010终极版,问题是没有我想到的标准库文件,所以我不能包含它们中的任何一个。

Any help how to fix that?! 任何帮助如何解决这个问题?!

That's a known problem with uninstaller of VS2012 RC/Beta. 这是VS2012 RC / Beta卸载程序的已知问题。 It will deregister the platform SDK, delete the folder, and even worse - would make changes for all previous VS versions. 它将取消注册平台SDK,删除文件夹,更糟糕的是 - 将对所有以前的VS版本进行更改。 I am not sure what registry settings it changes (Around $(VCInstallDir) ) - but it breaks it. 我不确定它改变了什么注册表设置(大约$(VCInstallDir) ) - 但它打破了它。

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). 唯一的选择是找到相关的标题,库和可执行文件,复制路径,并将其添加到VC2010(以及之前的,如果有的话)。 You do it by VC++ Directories in Tools->Options, but that's not available for VC2010! 您可以通过工具 - >选项中的VC ++目录来执行此操作,但这不适用于VC2010! So, you better specify the path in your project itself. 因此,您最好在项目中指定路径。

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. 有一些“完全VS卸载”工具,但我现在找不到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在哪里可以找到C ++标准库中特定功能的源代码? (Visual Studio安装) - Where to find source code for specific function in C++ standard library? (Visual Studio installation) 在 macOS 上使用 Visual Studio Code 调试 C++ 标准库 - Debug C++ Standard Library with Visual Studio Code on macOS 如何在Visual Studio中更改C ++标准库实现 - How to change C++ standard library implementation in Visual Studio 查看 C++ 有关 Visual Studio 2022 中鼠标悬停的标准库文档 - View C++ standard library documentation on mousehover in Visual Studio 2022 Visual Studio 2019:无法在 cpp 文件中导入 C++ 标准库声明,而无需先将其导入单独的模块 (ixx) - Visual Studio 2019: Cannot `import` C++ Standard Library declaration in cpp file without importing it in a separate module (ixx) first Visual C ++标准库关键字 - Visual C++ Standard Library keywords 在 Visual Studio 中找不到任何 header 文件 c++ 项目 - Cannot find any header files c++ project in Visual Studio Visual Studio 2015的C ++标准 - C++ Standard for Visual Studio 2015 Visual Studio 2012 C ++标准输出 - Visual Studio 2012 C++ Standard Output Visual Studio 错误或 c++ 标准已更改? - visual studio bug or c++ standard changed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM