当前位置:网站首页>Installation and configuration tutorial of mingw-w64
Installation and configuration tutorial of mingw-w64
2022-07-23 17:55:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
step :
MinGW The full name is :Minimalist GNU on Windows . It's actually going to be classic open source C Language compiler GCC Transplanted to Windows Under the platform , And it includes Win32API , So you can compile the source code to be available in Windows Executable program running in . And you can use some Windows Do not have the ,Linux Development tools under the platform . In a word :MinGW Namely GCC Of Windows edition . MinGW-w64 And MinGW The difference is that MinGW Only compile build 32 Bit executable , and MinGW-w64 Can be compiled to generate 64 position or 32 position Executable program . Because of that ,MinGW Has been MinGW-w64 replaced , And MinGW It has already stopped updating , Built in GCC Stagnated in 4.8.1 edition , and MinGW-w64 Built in GCC It's updated to 8.1.0 edition .(2020/12/15)
1. download MinGW-w64
I'm here MinGW-w64 file , If you want to omit the first step, you can download it directly : https://download.csdn.net/download/didi_ya/13697507
Download steps of official website : Official address :http://mingw-w64.org/doku.php 1. choice Downloads, Get into MinGW-w64 Download details page .
2. Click on SourceForge, Get into MinGW-w64 The download page .
3. Drop down to the bottom to select “Download mingw-w64-install.exe” Hyperlinks , Will download this MinGW-w64 Auto install program .
2. install MinGW-w64
When the download is complete , Double click to enter the installation .
1. Choose the version
explain :Version refer to gcc Version of , If there is no special need , Generally, you can choose the highest version number . operation : In this version , The highest version is 8.1.0 , Just select it .
2. Choose computer system architecture
explain : The computer system is 64 Bit , choice x86_64; If it is 32 position System , select i686 that will do .
3. Choose OS interface protocol
explain : If you want to develop Windows Program , Need to choose win32 , The development of Linux、Unix、Mac OS And other programs under the operating system , You need to choose posix .
4. Select exception handling model (64 position )
explain : Exception handling is very important in development , In the process of development , Most of the time will be spent dealing with all kinds of abnormal situations .seh It's a new invention , and sjlj It's ancient .seh Good performance , But does not support 32 position . sjlj Good stability , Support 32 position . Suggest 64 Bit operating system selection seh.
5. Then change the path , All the way Next that will do
3. To configure MinGW-w64 route
Right click “ This computer ”–> attribute –> Advanced system setup –> environment variable –> Set system variables
Replace the previously installed MinGW-w64 Of bin Folder address , Copy to the new blank variable location , Can finish MinGW-w64 Configuration work .
4. Verify the installation
win+r, Input cmd Go to the command line , Input “gcc -v” And press enter (Enter), Will be displayed MinGW-w64 List of components .
If your “ Command prompt ” Shows a large list of component information , That means your MinGW-w64 The installation is complete , Congratulations !
You can use... From now on MinGW-w64 To compile the C/C++ 了 .
About compiling with compiler C/C++ Program , I will introduce it in the next blog . If it helps you , Remember to like it ~
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/126663.html Link to the original text :https://javaforall.cn
边栏推荐
- WSUS can patch MySQL Middleware_ Join the WSUS patch server and download the patch
- WARNING: Your password has expired.Password change required but no TTY available.
- USB Type-C PD CC逻辑芯片中的角色定义
- ContextLoaderListener vs DispatcherServlet
- Makefile common functions notdir, wildcard, patsubst
- 【作业】研一(互联网新技术作业)
- 基于scrapy的电商平台数据爬取与展示
- Single cell literature learning (part6) -- forestfireclustering for SC sequencing combinations iterative label promotion with
- 开源需要专业化
- 传奇架设 GEE引擎教程 配置微端
猜你喜欢

深入理解机械系统的模态与振动

An online frequent fullgc troubleshooting

At least half of the people can't answer the difference between isempty and isblank

Interviewer: how to use redis to realize distributed locks?

From 5 seconds to 1 second, remember the performance optimization with "very" significant effect once

强化学习---马尔可夫决策过程 MP MRP MDP

Deeply understand the mode and vibration of mechanical system

File management system based on OpenPGP

Données chronologiques dans l'Internet industriel des objets

ride the wind and waves! Digital transformation in the era of financial technology
随机推荐
分页类
Single cell thesis record (part19) -- a comprehensive comparison on cell type composition information for St data
MySQL operation
Sublime text tips
jps详解
Use Preparedstatement to select and display recorded JDBC programs
LDAP统一认证服务解决方案[通俗易懂]
分布式事务解决方案
卡方分布、方差分析
MySQL field modification
Research and implementation of network multi exit design based on policy routing deployment
RS232 DB9串口设备
MySQL大量写入问题优化方案 MySQL参数调优
IDEA这些既好用又好玩的三十多个宝贝插件你还不知道吗?「建议收藏」
Kv260 single board PS control setting IIC switch chip
LeetCode_ Dynamic programming_ Medium_ 120. Triangle minimum path sum
传奇架设 GEE引擎教程 配置微端
sns_ sensor_ instance_ api
Start multiple redis instances on a Linux machine
rust求数组中最大值