premierrot.blogg.se

Compile c++ visual studio code using wsl
Compile c++ visual studio code using wsl











compile c++ visual studio code using wsl
  1. #COMPILE C++ VISUAL STUDIO CODE USING WSL MANUAL#
  2. #COMPILE C++ VISUAL STUDIO CODE USING WSL WINDOWS 10#

I ran the command 'whoami' in DOS window, when logged in through each of RDP and SSH. I've also tried WSL1, Ubuntu 18.04 with the same results.

compile c++ visual studio code using wsl

OpenSSH: I've setup OpenSSH using instructions from here: Hello one can see cl.exe just returns back with an error '66'.įor shells error 66 typically means: cannot open input. All rights C:\Users\osqa\workarea\osqa_ca-w10-bld-05_os_211\os>hello.exe I do not ssh directly into the C:\Users\osqa\workarea\osqa_ca-w10-bld-05_os_211\os>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" C:\Users\osqa\workarea\osqa_ca-w10-bld-05_os_211\os>cl.exe hello.cĬopyright (C) Microsoft Corporation. But it does not work in WSL if I SSH into the VM: Note that I ssh into the windows VM, call the vcvarsall.bat script and then start WSL and then invoke the compiler. ago vinkna This can be disabled in your vscode settings. (Make sure the Microsoft C/C++ extension is not installed). This also works fine in WSL if I RDP into the VM. It is not recommended to use clangd with the C/C++ extension at the same time: Choose View > Extensions, then search for clangd. This works fine in the DOS window when log into the system using RDP or SSH using OpenSSH. Microsoft (R) Incremental Linker Version 5.1Ĭ:\Users\osqa\workarea\osqa_ca-w10-bld-05_os_211\os>hello.exe All rights reserved.Ĭl : Command line warning D9002 : ignoring unknown option '-version'Ĭl : Command line error D8003 : missing source filenameĬ:\Users\osqa>cd workarea\osqa_ca-w10-bld-05_os_211\osĬ:\Users\osqa\workarea\osqa_ca-w10-bld-05_os_211\os>cl.exe hello.c

compile c++ visual studio code using wsl

Microsoft (R) C/C++ Optimizing Compiler Version 5.1 for 圆4Ĭopyright (C) Microsoft Corporation.

#COMPILE C++ VISUAL STUDIO CODE USING WSL MANUAL#

Access is either through RDP for manual tests or using SSH as part of our CI system.Ĭall setup script from DOS window: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64Ĭ:\Users\osqa>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

#COMPILE C++ VISUAL STUDIO CODE USING WSL WINDOWS 10#

We wanted to replace the slow cygwin toolset with WSL for building our Windows executable.Įxecutables are built on Windows 10 VMs.













Compile c++ visual studio code using wsl