我对Visual Studio有一个奇怪的问题。昨天一切都很好。今天,它给了我编译器错误,即使我尝试运行这样的例子:
int main()
{
return 0;
}
这就是所有的错误:
Severity Code Description Project File Line Suppression State
Warning C4335 Mac file format detected: please convert the source file to either DOS or UNIX format test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C3872 '0x90': this character is not allowed in an identifier test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x3' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x4' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x40' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x18' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x1' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0xe' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2018 unknown character '0x1f' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C2146 syntax error: missing ';' before identifier 'ÿÿ¸' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 1
Error C3872 '0x2021': this character is not allowed in an identifier test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x1d' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C3872 '0xa9': this character is not allowed in an identifier test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C3873 '0xa9': this character is not allowed as a first character of an identifier test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C3872 '0xf7': this character is not allowed in an identifier test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x6' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x16' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x1' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x7' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0x2' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
Error C2018 unknown character '0xe' test c:\qt\qt5.9.3\tools\qtcreator\bin\clang\bin\clang.exe 2
即使我创建了一个空项目,也会发生这种情况。
我认为问题与Qt的clang.exe
有关。我不明白为什么它试图使用该编译器(我没有改变任何东西)。
如何更改此设置并再次使用“Visual C ++ 14.1”编译器?
答案 0 :(得分:0)
以下一些解决方案可能会对您有所帮助。