Problem environment:
Microsoft Visual Studio Community 2022 (64-bit)
Windows SDK 10.0.19041.685
The problem is caused by an incorrect include directory set automatically by VS.
And the wrong path shown in the image above is provided by the macro $(UCRTContentRoot)
.
The value of this macro is taken from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10
the value of a registry key that may be set to the wrong value when installing some SDK-related packages:
To solve this problem, we can delete the wrong registry key and find the SDK installer to fix it:
or directly modify the value of the registry key to the correct path (eg: C:\Program Files (x86)\Windows Kits \10).
Read More:
- fatal error: libusb.h: No such file or directory [How to Solve]
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- [Solved] 1.fatal error: NvInfer.h: No such file or directory
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- [Solved] utils.c:33:18: fatal error: zlib.h: No such file or directory
- [Solved] ROS fatal error: alsa/asoundlib. h: There is no such directory or file
- [Solved] fatal error: bits/libc-header-start.h: No such file or directory
- [Solved] src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory
- Redis installation error: jemalloc/jemalloc.h: No such file or directory.
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- [Solved] Linux R Pack Error: cram/cram_io.c:61:10: fatal error: lzma.h: No such file or directory
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- [Solved] fatal error: Eigen/Geometry: No such file or directory
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory