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

I had the same issue (here), the problem is that for some reason, MSVS is not adding the Windows Universal CRT SDK to the include and library paths (this SDK has the header files for things like “float.h” and so on).

To add it to your project, you need to add the include and lib paths in the Project settings.

In my case they were:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt <- header path
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64 <- library path

(you can find it by searching for “float.h”, and “ucrtd.lib”, but be careful not to use the path for Linux headers).

You can add these paths at: Project Properties -> C/C++ -> General -> Additional Include Directories (add header path here)

and then Project Properties -> Linker -> General -> Additional Library directories (add library path here).

Leave a Comment