Replies: 1 comment 2 replies
-
Hi @the-moog . The current preferred way to target WSL is to use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the file c_cpp_properties.json you can have multiple entries in "configurations". Valid 'name' keys are anything, but "Win32" and "Linux" are used to indicate the platform and selected accordingly by default.
(BTW: 32 bit windows pretty much no longer exists so why Win32??) But that's not my issue.
I was working in WSL (using WSL/Remote) and realised that it's pickng up settings from the wrong section. It's picking up path to GCC and Includes from the Win32 section instead of Linux. So the path format is wrong. "C:\...." etc. instead of /mnt/c/.. or /usr/... I can change it but the work is cross platform, so if I open the project in Windows, rather than WSL it would be wrong again.
Surely there should be a 'WSL' setting as the paths could easily be /mnt/c/... etc or at least use the Linux settings as the OS is Linux (WSL) not Windows.
Beta Was this translation helpful? Give feedback.
All reactions