Pal*_*h35 2 c++ visual-studio visual-c++
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:
我遇到了同样的问题(此处),问题是由于某种原因,MSVS 没有将Windows Universal CRT SDK添加到包含和库路径(此 SDK 具有“float.h”等的头文件))。
要将其添加到您的项目中,您需要在项目设置中添加 include 和 lib 路径。
就我而言,他们是:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt <- header path
Run Code Online (Sandbox Code Playgroud)
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64 <- library path
Run Code Online (Sandbox Code Playgroud)
(您可以通过搜索“float.h”和“ucrtd.lib”找到它,但请注意不要使用Linux头文件的路径)。
您可以在以下位置添加这些路径:(Project Properties -> C/C++ -> General -> Additional Include Directories 在此处添加标头路径)
然后Project Properties -> Linker -> General -> Additional Library directories (在此处添加库路径)。
| 归档时间: |
|
| 查看次数: |
1382 次 |
| 最近记录: |