About 756,000 results
Open links in new tab
  1. Using C++ and WSL in VS Code - Visual Studio Code

    In this tutorial, you will configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger on Ubuntu in the Windows Subsystem for Linux (WSL). GCC stands for GNU Compiler Collection; GDB is the GNU debugger. WSL is a Linux environment within Windows that runs directly on the machine hardware, not in a virtual machine.

  2. How to compile executable for Windows with GCC with Linux

    Aug 6, 2016 · To create Windows executables, you need to install mingw cross-compiler: sudo apt-get install mingw-w64 Then you can create 32-bit Windows executable with: i686-w64-mingw32-gcc -o main32.exe main.c And 64-bit Windows executable with: x86_64-w64-mingw32-gcc -o main64.exe main.c

  3. Using Visual Studio Code for C++ (Part 2, Windows + WSL)

    Feb 5, 2024 · VSC seemed to satisfy my requirements, but implied the installation of a C++ compiler & other tools needed to compile and run the programs. I tried MinGW / MSYS / Cygwin, and I thought that, since Microsoft was offering Linux natively in the latest editions of Windows 10, to use WLS (Windows Subsystem for Linux).

  4. Coding & Testing Linux Applications on Windows using WSL and VS Code

    Sep 2, 2021 · In this article, I will share my experience of using Windows Subsystem for Linux along with Visual Studio Code for some basic coding and testing in C++ & Java. Whilst I will be using...

  5. C/C++ development on Windows in VS Code and WSL2 #1

    Feb 5, 2021 · There is a lot of toolchains for C/C++. Although there are IDEs, some developers prefer using text editors and manual compilation. On Windows you can use VS Code and so called Windows Subsystem for Linux to compile like on native Linux system. Installation VS Code installation. Download an installer from the official website. Install.

  6. How to Create an EXE File in Visual Studio Code - HatchJS.com

    In this article, we will show you how to create an EXE file in Visual Studio Code using two different methods: the command line and the Visual Studio Code GUI. We will also discuss the pros and cons of each method so that you can choose the one that best suits your needs.

  7. Setting Up the Windows Subsystem for Linux (WSL) for Use in …

    Nov 20, 2020 · This guide will show you how to enable, install, and configure the Windows Subsystem for Linux (WSL) on your Windows 10 computer, for use in writing and compiling C code. There are many advantages to compiling code locally on …

  8. Use VS Code and WSL to build C++ compilation and debugging …

    Download and install Visual Studio Code. Install Ubuntu in the win10 app store and execute the following commands in ubuntu to install g++ and gdb. Open the VSCode terminal and enter bash Enter, the terminal becomes 1:wsl, you can compile …

  9. Installing & Using Visual Studio Code for C++ learning - Part 2 - using WSL

    Keep in mind that, when using wsl and Linux tools (such as gcc, g++) the default executables are Linux-native - so they will run on Linux, not on Windows. There are cross-compilers available.

  10. visual studio code - VSCode Run C/C++ File attempts to run the compiled

    Dec 26, 2022 · Press Ctrl + ` to open the inbuilt terminal if it's not open, then click on the dropdown next to the "+" dymbol at the top right corner of the terminal, and click on "Configure Terminal Settings". In the tab that opens, set Terminal › External: Windows Exec to C:\Windows\System32\cmd.exe. Should do the trick.

  11. Some results have been removed
Refresh