VisialStidio's eerie C1083 error
Create a default C++project and compile it with an error.
I have tried deleting, reinstalling, repairing, etc., but none of them have been effective.
The error path also exists, and some are correct.
严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 C1083 无法打开源文件: “C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86”: No such file or directory ConsoleApplication1 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86 1
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86>dir
驱动器 C 中的卷没有标签。
卷的序列号是 CE96-3A1D
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86 的目录
2024/08/07 10:48 <DIR> .
2024/08/07 10:48 <DIR> ..
2024/08/07 10:48 <DIR> 2052
2024/08/20 22:51 2,533,272 c1.dll
2024/08/20 22:51 8,480,192 c1xx.dll
2024/08/20 22:51 7,427,504 c2.dll
2024/08/20 22:51 429,512 cl.exe
2024/08/20 22:51 409 cl.exe.config
2024/08/20 22:51 1,373,624 dpcmi.dll
2024/08/20 22:51 22,944 dumpbin.exe
2024/08/20 22:51 22,944 editbin.exe
2024/08/20 22:51 22,944 lib.exe
2024/08/20 22:51 1,711,536 link.exe
2024/08/20 22:51 409 link.exe.config
2024/08/20 22:51 170,288 Microsoft.Diagnostics.Tracing.EventSource.dll
2024/08/20 22:51 45,952 Microsoft.VisualStudio.RemoteControl.dll
2024/08/20 22:51 912,816 Microsoft.VisualStudio.Telemetry.dll
2024/08/20 22:51 41,848 Microsoft.VisualStudio.Utilities.Internal.dll
2024/08/20 22:51 635,304 ml.exe
2024/08/20 22:51 621,448 msvcp140.dll
2024/08/20 22:51 24,984 msvcp140_1.dll
2024/08/20 22:51 199,576 msvcp140_2.dll
2024/08/20 22:51 704,408 Newtonsoft.Json.dll
2024/08/20 22:51 88,968 pgodb140.dll
2024/08/20 22:51 99,296 pgomgr.exe
2024/08/20 22:51 16,768 System.Runtime.CompilerServices.Unsafe.dll
2024/08/20 22:51 124,296 vcmeta.dll
2024/08/20 22:51 79,240 vcruntime140.dll
2024/08/20 22:51 379,440 vctip.exe
Developer technologies | C++
Developer technologies | Visual Studio | Other
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-21T06:20:40.9433333+00:00 Welcome to Microsoft Q&A!
Since this is an English forum, it is recommended that you post your questions in English.
Can you provide detailed error information? Which files cannot be opened? Does the file exist?
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-23T14:35:52.28+00:00 Is there any update?
-
呆鹅 • 0 Reputation points
2024-08-23T14:41:57.4333333+00:00 There have been updates/fixes, and I have even uninstalled and reinstalled VS22. But my problem still isn't resolved.
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-26T02:06:05.4133333+00:00 To better help us solve your problem, please provide the following information:
1.What files can't be opened?
2.What type of C++ project are you using?
3.Can you provide a screenshot of the error?
-
呆鹅 • 0 Reputation points
2024-08-26T02:30:57.8266667+00:00 错误 C1083 无法打开源文件: “C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86”: 没有这样的文件或目录 ConsoleApplication1 C:\Program Files \Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86 1
When I ask questions, I provide detailed explanations and operations
You can take a detailed look
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-26T02:54:18.4566667+00:00 Currently, the MSVC version is VC\Tools\MSVC\14.41.34120. Your version is 14.16.27023.
Please try to update your Visual Studio.
What type of C++ project are you using?Can you provide a screenshot of the error?
-
呆鹅 • 0 Reputation points
2024-08-27T08:29:39.3166667+00:00 -
呆鹅 • 0 Reputation points
2024-08-27T08:31:19.4266667+00:00 Isn't that what was said at the beginning
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T08:35:51.1533333+00:00 MSVC 14.16.27023 is VS 2017 build tools. Did you install VS 2022 C++ workload?
-
呆鹅 • 0 Reputation points
2024-08-27T08:37:25.1866667+00:00 This directory also exists
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T08:37:43.7333333+00:00 Right Click project -> platform tool set -> Visual Studio 2022 (v143)
-
呆鹅 • 0 Reputation points
2024-08-27T08:42:29.38+00:00 The screenshot shows the current project options
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T08:55:55.7733333+00:00 The project is using VS2022 build tools, but the error shows VS2017 build tools.
Can you provide the build output information?Right click project -> properties -> C/C++ -> General -> Suppress Startup Banner: No.
Then right click project -> clean , rebuild.
-
呆鹅 • 0 Reputation points
2024-08-27T09:23:23.8233333+00:00 According to the operation, there are still issues
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T09:35:37.23+00:00 Please check the command line option window.
Do not add the path:
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86
-
呆鹅 • 0 Reputation points
2024-08-27T09:39:01.84+00:00 A new error has occurred
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T09:44:20.7633333+00:00 I mean that if there is such line, please delete it.
-
呆鹅 • 0 Reputation points
2024-08-27T09:51:14.6166667+00:00 There was originally no such profession. Now delete it.
I previously installed a tools version using VISALtudio Installer. Is it related to this
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-27T09:53:40.9233333+00:00 And try unchecking the option:
-
呆鹅 • 0 Reputation points
2024-08-27T09:54:58.5066667+00:00 Cancelled, compilation is still the same error
-
呆鹅 • 0 Reputation points
2024-08-27T10:35:47.08+00:00 Cancelled, compilation is still the same error
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-28T01:23:00.5+00:00 Create a new desktop project, will the problem still occur?
In addition, you can try Visual Studio preview version: https://visualstudio.microsoft.com/vs/preview/
-
呆鹅 • 0 Reputation points
2024-08-28T05:59:44.18+00:00 not run
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-28T06:02:49.3633333+00:00 Select Application type: Console application or Desktop application.
-
呆鹅 • 0 Reputation points
2024-08-28T06:05:32.03+00:00 Console application or Desktop application.
not run
-
呆鹅 • 0 Reputation points
2024-08-28T06:06:30.7533333+00:00 not run
-
呆鹅 • 0 Reputation points
2024-08-28T06:07:48.38+00:00 not run
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-28T06:32:21.6066667+00:00 Since all projects have the problem, it might be related to the VS environment.
Open developer command tool and reset the settings.
Also try uninstall MSVC v141 2017 build tools.Use cmd:
devenv /ResetSettings
-
呆鹅 • 0 Reputation points
2024-08-28T07:20:53.2366667+00:00 I executed the devenv /ResetSettings command and it opened the vs window. Based on this, I created a project/opened a pre project. However, during compilation, there were still errors, just like before
-
呆鹅 • 0 Reputation points
2024-08-28T07:22:05.2466667+00:00 Same error code
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-28T09:54:08.7833333+00:00 Have you tried uninstalling MSVC V141 VS 2017 build tool in Visual Studio Installer or Use Visual Studio Preview version?
-
呆鹅 • 0 Reputation points
2024-08-29T01:36:01.4133333+00:00 I have tried uninstalling and reinstalling the entire VS, but this error still occurs
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T01:41:06.1933333+00:00 What about Visual Studio Preview version. Will the same problem occur?
-
呆鹅 • 0 Reputation points
2024-08-29T01:42:23.9466667+00:00 I installed the same version but did not install the preview version
-
呆鹅 • 0 Reputation points
2024-08-29T01:49:31.74+00:00 I will uninstall now and try installing the preview version
-
呆鹅 • 0 Reputation points
2024-08-29T03:53:35.5366667+00:00 The preview version also produces the same error message
-
呆鹅 • 0 Reputation points
2024-08-29T03:54:16.44+00:00 The preview version also produces the same error message
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T05:40:37.4566667+00:00 Try right click your project -> Open in Terminal and compile the project on the command line:
msbuild .\<ProjectName>.vcxproj
If build successfully, you can find the exe at Debug folder.
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T05:43:28.8566667+00:00 If compilation fails, the vcxproj file was generated with broken entries.
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T06:06:44.8+00:00 The workaround may help: https://developercommunity.visualstudio.com/t/problem-with-compile-c-project-c1xx-fatal-error-c1/240102#T-N349912
running a script to setCaseSensitiveInfo to “disable” under whole source project.fsutil.exe file setCaseSensitiveInfo <path> disable
-
呆鹅 • 0 Reputation points
2024-08-29T06:11:26.4+00:00 Running Error
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T06:14:22.7966667+00:00 replace <ProjectName> with your actual projects. ConsoleApplication6
-
呆鹅 • 0 Reputation points
2024-08-29T06:46:35.8033333+00:00 Running Error
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T07:06:47.1833333+00:00 Have you ever used WSL?
Can you provide the content text of vcxproj file?
-
呆鹅 • 0 Reputation points
2024-08-29T07:46:46.6333333+00:00 I have installed WSLs, but I haven't used them yet
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T07:54:54.77+00:00 The problem may be related to WSL.
https://developercommunity.visualstudio.com/t/problem-with-compile-c-project-c1xx-fatal-error-c1/240102#T-N349912-N377982 -
呆鹅 • 0 Reputation points
2024-08-29T08:49:45.88+00:00 This issue has been closed and there is no solution available
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-29T09:26:21.92+00:00 -
呆鹅 • 0 Reputation points
2024-08-30T01:46:38.15+00:00 Sorry, could you teach me how to operate it? I don't quite understand
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-30T01:51:27.5533333+00:00 If you have not used WSL, try uninstalling WSL. Did your Visual Studio work properly before?
-
Minxin Yu • 13,506 Reputation points • Microsoft External Staff
2024-08-30T01:55:19.0933333+00:00 The command is used to disable path CaseSensitive.
Replace <path> with your project folder path.
fsutil.exe file setCaseSensitiveInfo <path> disable
Sign in to comment