When I try to create a simple hello world in c++, I get around 500 errors, like these:
Error (active) the global scope has no "float_t" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecmath 679 13
Error (active) the global scope has no "double_t" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecmath 679 34
Error (active) the global scope has no "nan" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecmath 691 35
Error (active) the global scope has no "cbrtf" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecmath 696 13
Error (active) the global scope has no "atoi" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecstdlib 20 31
Error (active) the global scope has no "atexit" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecstdlib 19 49
Error (active) the global scope has no "abort" cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludecstdlib 19 13
Error (active) declaration is incompatible with "double __MINGW_NOTHROW" (declared at line 312) cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludestdlib.h 478 22
Error (active) expected a ';' cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludestdlib.h 478 38
Error (active) declaration is incompatible with "double __MINGW_NOTHROW" (declared at line 312) cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludestdlib.h 480 23
Error (active) expected a ';' cTest c:Program Files (x86)Microsoft Visual Studio 14.0VCincludestdlib.h 480 39
using this code:
#include <iostream>
int main() {
std::cout << "hi";
return 0;
}
I have tried removing the other versions of visual studio on my computer, and all the files from the Program Files (x86), but that didn't help. I have also tried uninstalling and reinstalling, repairing, and installing and uninstalling Windows Kits, none of that worked. Anyone else having this problem, or knows how to solve it?
Aucun commentaire:
Enregistrer un commentaire