问题
Having installed VS 2019 on my PC, and opening up a new project, i get 408 errors that all say it cannot open various source .h files, such as errno.h, float.h, corecrt.h, etc. or 'the global scope has no "acosf" 'I had just installed visual studio and have no clue how it works, and have not done anything other than install it and open up a new project. Possibly useful information:
- It was not installed in the default location, but on the D: drive
- visual studio works fine when I open it with unity to edit scripts for my unity projects, but when opening it from its desktop icon or from the start menu, i get the errors
- Unity was installed before i installed Visual studio and appears to be using a different version of visual studio somewhere else on my PC, but i cant find where it is, hence me installing it myself
- The project is a C++ project
I have already tried repairing visual studio and reinstalling it, but it did not work.
回答1:
I suggest you could to check the version of Windows SDK in visual studio installer. And then set the appropriate version of windows sdk in the property -> General -> windows SDK version
.
来源:https://stackoverflow.com/questions/63139726/newly-installed-visual-studio-returns-408-errors-on-blank-program-of-type-can