简体   繁体   English

如何为 WSL 和 Visual Studio 代码配置编译器

[英]How to configure compiler for WSL and visual studio code

I am new to linux, c++, and visual studio code.我是 linux、c++ 和 Visual Studio 代码的新手。 Right now, the compiler I have installed does not match the required year for my class, which is g++ 2017. I am wondering how to add the compiler, which is on the linux environment, to visual studio code.现在,我安装的编译器与我的 class 所需的年份不匹配,即 g++ 2017。我想知道如何将 ZE206A54E97690CCE566Z9 环境中的编译器添加到 Visual Studio 代码。

Thank you!谢谢!

You can start here:你可以从这里开始:

Using C++ and WSL in VS Code在 VS 代码中使用 C++ 和 WSL

There is a VSCode extension Remote - WSL that simplifies the setup.有一个 VSCode 扩展Remote - WSL可以简化设置。

Don't worry about the exact compiler version, a newer version should work fine (better even).不要担心确切的编译器版本,更新的版本应该可以正常工作(甚至更好)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Visual Studio Code 中包含编译器标志? - How to include compiler flags in Visual Studio Code? 如何使用Visual Studio 2012 c ++为VIX API配置编译器? - How to configure compiler for VIX API with Visual Studio 2012 c++? 如何在Visual Studio 2010中配置编译器警告? - How do I configure compiler warnings in Visual Studio 2010? Visual Studio Code:如何为 g++ 编译器添加 arguments? - Visual Studio Code: how to add arguments for g++ compiler? 如何在 Windows 上为 C++ 配置 Visual Studio Code? - How to configure Visual Studio Code for C++ on Windows? 如何在Ubuntu中为C ++配置Visual Studio代码 - How to configure Visual studio code for c++ in ubuntu Visual Studio Code:如何配置 includePath 以获得更好的 IntelliSense 结果 - Visual Studio Code: How to configure includePath for better IntelliSense results 如何配置 Visual Studio Code 以使用 cygwin、cmake 和 gcc 进行调试 - How to configure Visual Studio Code to debug with cygwin, cmake and gcc "如何在安装了 WSL 的 Visual Studio Code 中修复“g++:错误:helloworld.cpp:没有这样的文件或目录”?" - How to fix "g++: error: helloworld.cpp: No such file or directory" in visual Studio Code with WSL installed? WSL(Linux 的 Windows 子系统)和 Visual Studio Code 的问题 - Problems with WSL (Windows Subsystem for Linux) and Visual Studio Code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM