摘要: # 1下载protoc编译器 源代码和可执行文件下载:[下载地址](https://github.com/protocolbuffers/ProtoBuf/releases) 可根据不同的系统,下载对应的可执行文件,用于编译`.proto`文件 示例C++的命令方式为: `protoc.exe -- 阅读全文
posted @ 2023-08-08 10:40 绍荣 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 从阿里云上传下载docker image 访问cr.console.aliyun.com,进入自己的容器镜像服务器/实例列表/镜像仓库/基本信息 根据《操作指南》操作,就可以实现上传或下载镜像文件 2 执行镜像文件 sudo docker images # 查看镜像文件 sudo docker 阅读全文
posted @ 2023-04-16 12:00 绍荣 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 具体方案例如 { "suggest.noselect": true, "languageserver": { "ccls": { "command": "ccls", "filetypes": ["cc", "c", "cpp", "cuda"], "rootPatterns": [".tasks" 阅读全文
posted @ 2023-04-15 18:48 绍荣 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 我使用Vundle作为vim的插件包管理器,操作如下: Place this in your .vimrc or init.vim, Plugin 'iamcco/markdown-preview.nvim' ... then run the following in vim (to complet 阅读全文
posted @ 2022-12-06 21:12 绍荣 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 华为手机刷机教程 本文以刷麦芒5 MLA-AL10为例,其它华为手机,也可参考此方法进行刷机。 1.刷麦芒背景 目前所有的MLA-AL10都已unlock,即unlock the bootloader。unlock the bootloader,可获得root权限等高权限。 刷固件的前提是需要unl 阅读全文
posted @ 2022-04-22 14:15 绍荣 阅读(4304) 评论(0) 推荐(0) 编辑
摘要: 1编译链接库 -lz:压缩看(Z) -lrt: 实时库(real time):shm_open系列 -lm: 数学库(math) -lc: 标准C库(C lib) -dl: 显示加载动态库的动态函数库 2文件参数 -I ( i 的大写) :指定头文件路径(相对路径或绝对路径,建议相对路径) -i : 阅读全文
posted @ 2022-04-14 18:45 绍荣 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1 gprof 官网参考: https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html 使用方法参考: C/C++性能测试工具GNU gprof 以下内容转载来自C/C++性能测试工具GNU gprof , 仅稍微改动了源 阅读全文
posted @ 2022-04-13 15:50 绍荣 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1安装和测试 Now we can start adding install rules and testing support to our project. 1.1安装规则 install install用于指定在安装时运行的规则。它可以用来安装很多内容,可以包括目标二进制、动态库、静态库以及文 阅读全文
posted @ 2022-02-10 18:49 绍荣 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 1添加库的使用规范 2具体脚本 2.1target_compile_definitions() 向工程中加入预处理定义 语法: target_compile_definitions(<target> <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE 阅读全文
posted @ 2022-02-10 14:20 绍荣 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 参考 参考 1完整代码 |-step2 |--CMakeLists.txt |--tutorial.cxx |--MathFunctions |--CMakeLists.txt |--mysqrt.h |--mysqrt.cxx |--CMakeLists.txt cmake_minimum_req 阅读全文
posted @ 2022-02-10 12:22 绍荣 阅读(76) 评论(0) 推荐(0) 编辑