C++ Cross-Platform Development with Visual Studio and WSL
summary
Visual Studio 2019+ runs CMake natively on WSL so one source tree builds for Windows and Linux, demoing a small calculator built with GCC and debugged with gdb; AddressSanitizer caught a one-off buffer overflow and a one-line index fix makes the demo program behave. Integrated terminal, vcpkg installs glog into WSL to satisfy find_package, platform-specific IntelliSense flags missing Linux symbols, and the build can stay on WSL while debugging deploys to a local Linux Docker over SSH — everything works after the fixes.
AI-written summary · about
chapters (10)
- 0:00Introduction to WSL and CMake
- 3:05Debugging on Linux with GDB
- 7:24Advanced Debugging Techniques
- 9:21Integrating Third-Party Libraries
- 12:55Project Editing and Structure
- 14:28Retargeting for Windows
- 15:42Integrated Terminal Features
- 17:06Cross-Platform Diagnostics
- 18:44Remote Deployment and Debugging
- 22:10Summary and Resources
related talks
05mWindows Subsystem for Linux (WSL) Acquisition in Visual Studio
11mSimplifying your Cross-Platform Development with Visual Studio
11mC++ with Visual Studio 2019: target Linux and Windows, and be more productive with IntelliCode
01h 04mLatest & Greatest in Visual Studio 2019 for C++ developers
41mDeveloping for Linux on Windows with WSL
06mCMake Debugger for Projects Targeting Remote Linux Systems
29mBash shell scripts for Windows & Linux development with Qt
30mWhat's New in Visual Studio Code - Remote Dev, IntelliSense, Build/Debug...
