
We recommend this mode of WSL development, where all your source code files, in addition to the compiler, are hosted on the Linux distro. Visual Studio Code has support for working directly in WSL with the WSL extension. Note: Much of this tutorial is applicable to working with C++ and VS Code directly on a Linux machine. WSL is a Linux environment within Windows that runs directly on the machine hardware, not in a virtual machine. GCC stands for GNU Compiler Collection GDB is the GNU debugger. 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). Configure IntelliSense for cross-compiling.What could that be? As far as I know I didn't change anything. That means that something has changed since I started my project, 2 days ago.

Mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\test\main.cpp -o obj\Debug\main.oĮxecution of 'mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\test\main.cpp -o obj\Debug\main.o' in 'C:\Users\wobie\Documents\Codeblocks\test' failed. Build: Debug in test (compiler: GNU GCC Compiler). This morning I tried to repeat that: I started a new console application and tried to compile the code I recieved: My project is a console application, and when I started it (that was on my new computer) I could compile the "hello World" program you get when you start a console application. Thank you Commaster, that solved the "save everything" problem.īut I still have the compiling problem.

Mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef\main.cpp -o obj\Debug\main.oĮxecution of 'mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef\main.cpp -o obj\Debug\main.o' in 'C:\Users\wobie\Documents\Codeblocks\recreatie\priemzeef' failed.Īnother problem: when I click "save everything" I get an error message (see attachment), and when I open Code::Blocks I have to reload the project I was working on. Build: Debug in priemzeef (compiler: GNU GCC Compiler). I got error messages, so several times I made corrections and tried again.Īt a certain moment I got no more error messages but the message "Execution of 'mingw32-g++.exe -Wall -fexceptions -g -c C:\Users.\priemzeef' failed"įrom that moment I get only that message, also when I try to recompile older projects that used to compile fine on my old computer. I started working on a new project, did some coding and tried to compile.

I just installed Code::Blocks and Mingw32 gcc on my new computer after my old computer crached.
