随笔分类 - Linux
摘要:g++源码位置: C:\Users\Matthew Crawley\AppData\Local\Microsoft\Linux\HeaderCache\1.0\Ubuntu\usr\include\c++ g++源码位置: \\wsl.localhost\Ubuntu\usr\include\c++
阅读全文
摘要:VS Linux C++ Additional Debugger Commands Visual Studio 2022 Linux C++ 应用程序,当我们借助 GDB 调试时,如果需要设置其他的 GDB 调试命令,那么应在: 配置属性 => 调试 => 其他调试程序命令 一栏中填写需要的 GDB
阅读全文
摘要:GDB print derived type 当我们在使用GDB调试时, print 默认打印多态指针或多态引用的声明类型,如果我们需要查看其实际的派生类类型,方法是: 首先在GDB命令行输入命令: set print object on 然后再 print 相关的多态指针或多态引用。 当多态指针是
阅读全文
摘要:Visual Studio 2022 额外指定编译命令 在 命令行 >> 其他选项 栏中填写额外指定的编译命令。 举例:Visual Studio 2022 Linux C++ 应用程序,强制指定 g++ 编译器暂时还未完全支持的最新的 C++20 标准,以覆盖默认支持的最高的 C++17 标准:
阅读全文
摘要:Visual Studio 2022 配置CMake Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C++ Team Blog (microsoft.com)
阅读全文
摘要:使用 Visual Studio 2022 开发 Linux C++ 应用程序 前置条件: Windows上需要先安装 WSL2,方法见: Install WSL | Microsoft Docs 在 WSL2 中依次执行如下命令,进行安装如下必需软件: sudo apt update && sud
阅读全文
摘要:Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 References Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C
阅读全文
摘要:Install WSL Prerequisites You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11. If you're running an older bu
阅读全文
摘要:change or reset WSL password To change or reset your password, open the Linux distribution and enter the command: passwd. You will be asked to enter y
阅读全文
摘要:Using C++ in VS Code 👩🚀 Get Started with C++ and Windows Subsystem for Linux in Visual Studio Code 👨🚀 Configure VS Code for Clang/LLVM on macOS
阅读全文
摘要:
阅读全文
摘要:C++ 与 Visual Studio 2019 和 WSL (库组件) Reference 在 C++ 项目中使用库和组件 | Microsoft Docs 演练:创建和使用自己的动态链接库 (C++) | Microsoft Docs 演练:创建并使用静态库 (C++) | Microsoft
阅读全文
摘要:man 命令用来访问存储在Linux系统上的手册页面。在想要查找的工具的名称前面输入man命 令,就可以找到那个工具相应的手册条目。 手册页不是唯一的参考资料。还有另一种叫作 info 页面的信息。可以输入info info来了解 info页面的相关内容。
阅读全文
摘要:头文件 如果不小心修改了 Linux C/C++ 标准库头文件,可以下面这样操作进行恢复: 项目 → 重新扫描解决方案
阅读全文
摘要:终端 A more integrated terminal experience | Visual Studio Blog (microsoft.com) Say hello to the new Visual Studio terminal! | Visual Studio Blog (micro
阅读全文
摘要:Windows Terminal ,配置启动目录为 WSL : \\wsl$\Ubuntu\home
阅读全文
摘要:Visual Studio CMake 项目和 WSL https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ https://docs.microso
阅读全文
摘要:Visual Studio 使用 C++ 的 Linux 开发(WSL) https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ 其大致原理是:“ Vi
阅读全文
摘要:终端控制台使用 一、控制台基本使用 新建会话方法: 文件 / 连接 / 新建会话 修改日志存储位置: 选项 / 会话选项 二、终端程序升级方法 停止终端程序运行: killall mdk_core & killall ywupdate & feeder & 传输升级程序文件至终端目录:/tmp/up
阅读全文