Using Windows Subsystem for Linux #7982
-
I've installed {
"configurations": [
{
"name": "Win32",
"includePath": ["${workspaceFolder}/**"],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.17763.0",
"compilerPath": "/usr/bin/g++",
"cStandard": "c17",
"intelliSenseMode": "linux-gcc-x86",
"cppStandard": "c++17"
}
],
"version": 4
} The following error occurs:
However, looking in explorer, this path definitely exists. Does anyone know what's going on here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
We support WSL via using the Remote - WSL extension to connect to the remote WSL instance, which will run the Linux version of our extension instead of the Windows version of our extension. |
Beta Was this translation helpful? Give feedback.
-
Here is also a tutorial to help get started on WSL with the C++ extension: https://code.visualstudio.com/docs/cpp/config-wsl. |
Beta Was this translation helpful? Give feedback.
-
@sean-mcmanus Thanks so much for the answer, it really helped. I just can't seem to be able to press the "Mark as answer" button (it won't let me click it). Edit: I managed to mark it on my phone |
Beta Was this translation helpful? Give feedback.
We support WSL via using the Remote - WSL extension to connect to the remote WSL instance, which will run the Linux version of our extension instead of the Windows version of our extension.