摘要: 准备 cmake, 我目前使用的版本是3.18 llvm 源码, 我下载的是 11.0 我已经具备Vs2015和Vs2017的开发环境。 debug模式编译需要较多内存和较多硬盘存储空间。 (debug模式,我这边编译后,占用了60+G. 生成了较多的调试文件) release模式编译则不会需要较多 阅读全文
posted @ 2021-03-14 22:46 mohist 阅读(1447) 评论(0) 推荐(0) 编辑
摘要: 概述 本文演示环境: windows10 cmake version:3.18 qt version: 5.14 vscode version: 1.54.1 本文演示环境基于在线模式, 离线使用VScode,待验证。 准备 安装 cmake, 添加cmake到系统环境变量path中, 打开命令行, 阅读全文
posted @ 2021-03-14 21:28 mohist 阅读(5045) 评论(0) 推荐(0) 编辑
摘要: 概述 本文演示环境: Windows10 使用C语言获取年月日时分秒毫秒, 代码 #include <iostream> #include <string> #include <time.h> #include <sys/timeb.h> using namespace std; struct No 阅读全文
posted @ 2021-03-14 09:57 mohist 阅读(1715) 评论(0) 推荐(0) 编辑
摘要: 概述 本文将介绍 VScode + cmake 在 windows10上编译c++代码 前提: 我之前已经安装过VS2017, 故 编译将采用cl.exe。 开始之前 本文演示环境基于 windows10。cmake和 VScode版本如下。 VS code版本: 1.54.1 cmake 版本: 阅读全文
posted @ 2021-03-14 00:45 mohist 阅读(11831) 评论(0) 推荐(0) 编辑