当前位置:网站首页>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,然后在项目里点击编译,享受多核编译的快感吧
边栏推荐
- 基于AVFoundation实现视频录制的两种方式
- Abnova丨 MaxPab 小鼠源多克隆抗体解决方案
- NPDP如何续证?操作指南来了!
- hdu2377Bus Pass(构建更复杂的图+spfa)
- Is the securities account given by the school of Finance and business safe? Can I open an account?
- Write an interface based on flask
- Duchefa丨MS培养基含维生素说明书
- 示波器探头对信号源阻抗的影响
- Viewrootimpl and windowmanagerservice notes
- 教你自己训练的pytorch模型转caffe(二)
猜你喜欢
当Steam教育进入个性化信息技术课程
Abnova fluorescent dye 620-m streptavidin scheme
Typhoon is coming! How to prevent typhoons on construction sites!
中国的软件公司为什么做不出产品?00后抛弃互联网;B站开源的高性能API网关组件|码农周刊VIP会员专属邮件周报 Vol.097
When steam education enters personalized information technology courses
Prosci LAG-3 recombinant protein specification
Mathematical analysis_ Notes_ Chapter 9: curve integral and surface integral
Abbkine BCA法 蛋白质定量试剂盒说明书
Interpreting the daily application functions of cooperative robots
从架构上详解技术(SLB,Redis,Mysql,Kafka,Clickhouse)的各类热点问题
随机推荐
王老吉药业“关爱烈日下最可爱的人”公益活动在南京启动
如何让化工企业的ERP库存账目更准确
Use of thread pool
Duchefa p1001 plant agar Chinese and English instructions
序列联配Sequence Alignment
Abnova丨血液总核酸纯化试剂盒预装相关说明书
台风来袭!建筑工地该如何防范台风!
Abbkine BCA法 蛋白质定量试剂盒说明书
systemd-resolved 开启 debug 日志
Binary search
挖财商学院给的证券账户安全吗?可以开户吗?
SQL series (basic) - Chapter 2 limiting and sorting data
MYSQL IFNULL使用功能
How to open an account online for futures? Is it safe?
树莓派4B上ncnn转换出来的模型调用时总是崩溃(Segment Fault)的原因
leetcode:1139. 最大的以 1 为边界的正方形
Abnova cyclosporin a monoclonal antibody and its research tools
sql系列(基础)-第二章 限制和排序数据
解读协作型机器人的日常应用功能
Typhoon is coming! How to prevent typhoons on construction sites!