“newly” installed visual studio returns 408 errors on blank program of type 'cannot open source file “errno.h” '

浪尽此生 提交于 2021-02-17 05:44:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!