我只是无法将CL添加到路径

发布于 2025-02-07 15:45:06 字数 577 浏览 0 评论 0原文

我会简要介绍我面临的问题, 我是一个新的C ++学习者,我选择使用VS代码和MSVC。我成功地设法获得了VS代码。然后我安装了Visual Studio 2022。我意识到路径中仍然没有CL。因此安装的构建工具接下来: -

问题仍然存在,我只是无法将CL到达路径,甚至VCVARs.BAT或VCVARS64或VCVARS的任何版本都不起作用,在路径中添加bin文件夹不起作用。有人可以指导我如何成功安装编译器吗?

edit-1: 在VSCODE中运行构建任务给出

I will be brief with the problem I am facing,
I am a new c++ learner and I opted to work with Vs Code and Msvc. I successfully managed to get vs code. then I installed visual studio 2022. I realised there is still no cl in the path. so Installed build tools next:-
enter image description here

the problem still exists, I just cant make cl to the path, even vcvars.bat or vcvars64 or any version of vcvars doesn't work, adding bin folders to the path doesn't work aswell. can someone guide me how I can successfully install the compiler?

Edit-1:
running build task in vscode gives
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文