C++ Visual Studio中的std文件中存在错误
下面的代码C++ Visual Studio中的std文件中存在错误,c++,visual-studio,std,C++,Visual Studio,Std,下面的代码 #include <vector> void main() { std::vector<int> testing; testing.push_back(45); } 还有许多其他类型的错误,但这是前几行,如果需要,我可以发布更多细节 谢谢 不确定发生了什么,但删除程序文件中的visual studio 11-14文件夹并从“添加或删除程序”中“修复”visual studio仍然有效。我以前曾尝试卸载整个程序并重新安装,但由于某些原因,这并没有起作用。无论
#include <vector>
void main() {
std::vector<int> testing;
testing.push_back(45);
}
还有许多其他类型的错误,但这是前几行,如果需要,我可以发布更多细节
谢谢 不确定发生了什么,但删除程序文件中的visual studio 11-14文件夹并从“添加或删除程序”中“修复”visual studio仍然有效。我以前曾尝试卸载整个程序并重新安装,但由于某些原因,这并没有起作用。无论如何,希望有人能从中找到一些用处。不确定发生了什么,但删除程序文件中的visual studio 11-14文件夹并从“添加或删除程序”中“修复”visual studio是有效的。我以前曾尝试卸载整个程序并重新安装,但由于某些原因,这并没有起作用。无论如何,希望有人能从中找到一些用处。我转到了Project->Properties->Configuration Properties->General并将Windows SDK版本更改为最新版本(它是8.1,我将其更改为10.0.10586.0)它清除了所有的错误。< p>我到Projt>属性->配置属性>一般,并将Windows SDK版本更改为最新版本(它是8.1,我将它更改为100.10586),并且清理了所有的错误。< /P>你确定它是作为C++项目设置的吗?“在我甚至建立之前,我会吐出一串错误。”-因此,这既不是编译器错误,也不是链接器错误。这是一个工具错误。您安装了什么工具?我正在使用visual studio,卸载和重新安装不起作用,但是,删除程序文件中的所有visual studio 11-14文件夹,然后添加或删除程序并“修复”visual studio。感谢你确定它是作为C++项目设置的吗?“在我构建之前,我在吐出一堆错误”,所以那既不是编译器也不是链接错误。这是一个工具错误。您安装了什么工具?我正在使用visual studio,卸载和重新安装不起作用,但是,删除程序文件中的所有visual studio 11-14文件夹,然后添加或删除程序并“修复”visual studio。谢谢
Error (active) the global scope has no "float_t" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 688
Error (active) the global scope has no "double_t" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 688
Error (active) the global scope has no "nan" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 700
Error (active) the global scope has no "acoshf" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 704
Error (active) the global scope has no "asinhf" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 704
Error (active) the global scope has no "atanhf" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 704
Error (active) the global scope has no "cbrtf" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 705
Error (active) the global scope has no "erff" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 705
Error (active) the global scope has no "erfcf" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 705
Error (active) the global scope has no "expm1f" Test c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\cmath 706