当前位置:网站首页>CLion配置visual studio(msvc)和JOM多核编译
CLion配置visual studio(msvc)和JOM多核编译
2022-07-05 20:55:00 【胡安民】
安装visual studio(msvc)
如果你只是开发Window平台的软件时, 最好使用MSVC,这样可以使用大量的第三方lib,还有很多的构建指令,毕竟window上MSVC才是王道。从Visual Studio官网下载Visual Studio 社区版(注意需要2019版本或以下)
官网下载地址: https://visualstudio.microsoft.com/zh-hans/downloads/
如果下载不了的话,那么我这里提供百度网盘的方式
链接:https://pan.baidu.com/s/1NYDx02D4BDU6EMF2AcfYHg?pwd=1234
提取码:1234
–来自百度网盘超级会员V6的分享
然后进行安装Visual Studio ,然后设置安装目录,不然默认都是c盘,几个G呢

之后打开在工作复核,选择c++桌面开发
进入File|Settings|Build,Execution,Deployment|Toolchains,点击+号,打开Environment文件选择器,选择Visual Studio安装目录CLion自动扫描工具链,下图就是最后的结果。

设置使用的编译器,用于c代码编译
JOM 多核编译
Visual Studio 在大工程项目的编译时间较长,因为使用的是单核进行编译的,我们可以利用多核CPU的优势,实现并行编译,需要借用JOM访问Jom官网(https://wiki.qt.io/Jom)下载压缩文件,然后进行解压,然后将Jom的根路径添加到环境变量
链接:https://pan.baidu.com/s/1VSusAo7noTX-45ELvluymA?pwd=1234
提取码:1234
–来自百度网盘超级会员V6的分享

配置好之后打开Clion->settings->cmake 做如下设置

-G "NMake Makefiles JOM" , -j 8 建议自己看下cup核数

设置完成后保存重启Clion,然后在项目里点击编译,享受多核编译的快感吧


边栏推荐
- Maker education infiltrating the transformation of maker spirit and culture
- 当Steam教育进入个性化信息技术课程
- Redis唯一ID生成器的实现
- Make Jar, Not War
- 中国的软件公司为什么做不出产品?00后抛弃互联网;B站开源的高性能API网关组件|码农周刊VIP会员专属邮件周报 Vol.097
- Mode - "Richter replacement principle"
- leetcode:1139. 最大的以 1 为边界的正方形
- Viewrootimpl and windowmanagerservice notes
- Use of form text box (II) input filtering (synthetic event)
- PHP反序列化+MD5碰撞
猜你喜欢

Make Jar, Not War

Interpreting the daily application functions of cooperative robots

请查收.NET MAUI 的最新学习资源

使用WebAssembly在浏览器端操作Excel

PHP deserialization +md5 collision

The development of research tourism practical education helps the development of cultural tourism industry

基于flask写一个接口

Abnova丨CRISPR SpCas9 多克隆抗体方案

研學旅遊實踐教育的開展助力文旅產業發展

Abbkine BCA法 蛋白质定量试剂盒说明书
随机推荐
CareerCup它1.8 串移包括问题
研学旅游实践教育的开展助力文旅产业发展
Abnova丨DNA 标记高质量控制测试方案
Abnova丨荧光染料 620-M 链霉亲和素方案
Duchefa d5124 md5a medium Chinese and English instructions
学习机器人无从下手?带你体会当下机器人热门研究方向有哪些
AITM 2-0003 水平燃烧试验
重上吹麻滩——段芝堂创始人翟立冬游记
基于AVFoundation实现视频录制的两种方式
mysql全面解析json/数组
Abnova maxpab mouse derived polyclonal antibody solution
bazel是否有学习的必要
SQL series (basic) - Chapter 2 limiting and sorting data
How to make ERP inventory accounts of chemical enterprises more accurate
How to open an account online for futures? Is it safe?
ts 之 属性的修饰符public、private、protect
Use of thread pool
ts 之 类的简介、构造函数和它的this、继承、抽象类、接口
Phpstudy Xiaopi's MySQL Click to start and quickly flash back. It has been solved
leetcode:1755. 最接近目标值的子序列和