随笔分类 -  Linux

摘要:g++源码位置: C:\Users\Matthew Crawley\AppData\Local\Microsoft\Linux\HeaderCache\1.0\Ubuntu\usr\include\c++ g++源码位置: \\wsl.localhost\Ubuntu\usr\include\c++ 阅读全文
posted @ 2022-12-22 16:39 ltimaginea 阅读(125) 评论(0) 推荐(0) 编辑
摘要:VS Linux C++ Additional Debugger Commands Visual Studio 2022 Linux C++ 应用程序,当我们借助 GDB 调试时,如果需要设置其他的 GDB 调试命令,那么应在: 配置属性 => 调试 => 其他调试程序命令 一栏中填写需要的 GDB 阅读全文
posted @ 2022-11-09 20:22 ltimaginea 阅读(52) 评论(0) 推荐(0) 编辑
摘要:GDB print derived type 当我们在使用GDB调试时, print 默认打印多态指针或多态引用的声明类型,如果我们需要查看其实际的派生类类型,方法是: 首先在GDB命令行输入命令: set print object on 然后再 print 相关的多态指针或多态引用。 当多态指针是 阅读全文
posted @ 2022-11-09 13:37 ltimaginea 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Visual Studio 2022 额外指定编译命令 在 命令行 >> 其他选项 栏中填写额外指定的编译命令。 举例:Visual Studio 2022 Linux C++ 应用程序,强制指定 g++ 编译器暂时还未完全支持的最新的 C++20 标准,以覆盖默认支持的最高的 C++17 标准: 阅读全文
posted @ 2022-08-12 19:44 ltimaginea 阅读(471) 评论(0) 推荐(0) 编辑
摘要:Visual Studio 2022 配置CMake Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C++ Team Blog (microsoft.com) 阅读全文
posted @ 2021-12-06 17:02 ltimaginea 阅读(2753) 评论(0) 推荐(0) 编辑
摘要:使用 Visual Studio 2022 开发 Linux C++ 应用程序 前置条件: Windows上需要先安装 WSL2,方法见: Install WSL | Microsoft Docs 在 WSL2 中依次执行如下命令,进行安装如下必需软件: sudo apt update && sud 阅读全文
posted @ 2021-11-18 14:17 ltimaginea 阅读(4000) 评论(2) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-10-03 00:21 ltimaginea 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-09-24 18:05 ltimaginea 阅读(59) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-09-24 17:09 ltimaginea 阅读(59) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-09-17 15:07 ltimaginea 阅读(52) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/2141093/202108/2141093-20210830223905488-986667018.png) 阅读全文
posted @ 2021-08-30 22:41 ltimaginea 阅读(17) 评论(0) 推荐(0) 编辑
摘要:C++ 与 Visual Studio 2019 和 WSL (库组件) Reference 在 C++ 项目中使用库和组件 | Microsoft Docs 演练:创建和使用自己的动态链接库 (C++) | Microsoft Docs 演练:创建并使用静态库 (C++) | Microsoft 阅读全文
posted @ 2021-07-05 00:07 ltimaginea 阅读(119) 评论(0) 推荐(0) 编辑
摘要:man 命令用来访问存储在Linux系统上的手册页面。在想要查找的工具的名称前面输入man命 令,就可以找到那个工具相应的手册条目。 手册页不是唯一的参考资料。还有另一种叫作 info 页面的信息。可以输入info info来了解 info页面的相关内容。 阅读全文
posted @ 2021-06-19 23:24 ltimaginea 阅读(98) 评论(0) 推荐(0) 编辑
摘要:头文件 如果不小心修改了 Linux C/C++ 标准库头文件,可以下面这样操作进行恢复: 项目 → 重新扫描解决方案 阅读全文
posted @ 2021-06-19 14:34 ltimaginea 阅读(108) 评论(0) 推荐(0) 编辑
摘要:终端 A more integrated terminal experience | Visual Studio Blog (microsoft.com) Say hello to the new Visual Studio terminal! | Visual Studio Blog (micro 阅读全文
posted @ 2021-06-19 12:45 ltimaginea 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Windows Terminal ,配置启动目录为 WSL : \\wsl$\Ubuntu\home 阅读全文
posted @ 2021-06-12 18:45 ltimaginea 阅读(154) 评论(0) 推荐(0) 编辑
摘要:Visual Studio CMake 项目和 WSL https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ https://docs.microso 阅读全文
posted @ 2021-06-12 18:10 ltimaginea 阅读(554) 评论(0) 推荐(0) 编辑
摘要:Visual Studio 使用 C++ 的 Linux 开发(WSL) https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/ 其大致原理是:“ Vi 阅读全文
posted @ 2021-06-12 15:04 ltimaginea 阅读(835) 评论(0) 推荐(0) 编辑
摘要:Vim 基本使用 阅读全文
posted @ 2021-01-11 23:58 ltimaginea 阅读(44) 评论(0) 推荐(0) 编辑
摘要:终端控制台使用 一、控制台基本使用 新建会话方法: 文件 / 连接 / 新建会话 修改日志存储位置: 选项 / 会话选项 二、终端程序升级方法 停止终端程序运行: killall mdk_core & killall ywupdate & feeder & 传输升级程序文件至终端目录:/tmp/up 阅读全文
posted @ 2021-01-11 23:40 ltimaginea 阅读(211) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示