How to compile C++ in Visualstudio using linux inside windows

Asked

Viewed 35 times

2

A friend said he has how to do this compilation by Visualstudio and run in a linux "subsystem"

  • 1

    I never did, you can use WSL https://docs.microsoft.com/en-us/windows/wsl/install-win10. Actually generating the Linux executable can already do it. It is necessary to test your application on Linux while on Windows. https://blogs.msdn.microsoft.com/vcblog/2017/02/targeting-windows-subsystem-for-linux-from-visual-studio/ and https://www.hanselman.com/blog/WritingAndDebuggingLinuxCApplicationsFromVisualStudioUsingTheWindowsSubsystemForLinux.aspx

1 answer

1

This tutorial by Microsoft exemplifies how to do this in visual studio, but to run according to the tutorial you will need a Linux machine connected remotely (I’m not sure if it would be possible to use a virtual machine)apparently the same procedure serves for raspbery pi or any other variation of linux.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.