October 25, 2024
Chicago 12, Melborne City, USA
C#

VSCode on wsl2 cant find gcc/g++


I try to run a .c with vscode on a wsl environment. I have both gcc and g++ installed. I verified that on a vscode terminal as explained in the guide. Í also have all the necessary extensions installed.

My problem: Step 3, choosing a compiler for the project fails – vscode can’t find the compiler. How do I configure vscode to use my compiler?

Bellow is a screenshot of the vscode. No errors appear. The menu only contain one option, nothing about gcc as in the guide.

enter image description here



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video