当前位置:网站首页>MinGW offline installation package (free, fool)

MinGW offline installation package (free, fool)

2022-06-12 07:56:00 Lanterns can only come to the classroom to experience life

Downloading from the official website is too slow , Go to the Internet and ask for money , That's really true. .
A fool like offline installation software , Welcome to download .

Alicloud disk

https://www.aliyundrive.com/s/jsRvC8ArLhW

Baidu SkyDrive

link :https://pan.baidu.com/s/1-jQCYz_wz6YKiQtS5MDvXw
Extraction code :obvy

course

install

I'm afraid beginners can't , Write a tutorial .
1、 Double click the icon with the mouse .
 Insert picture description here
2、 Select the installation path and click Extract.
 Insert picture description here
3、 Waiting for the installation , There won't be anything you need to do on the way .

Environment variable Settings

1、win10 Search bar : Search for environment variables ( Of course you can open it in other ways )

win10 Open environment variable :https://jingyan.baidu.com/article/a17d52854682b5c199c8f21c.html


win7 Open environment variable :
https://jingyan.baidu.com/article/86112f137c432c2736978774.html

 Insert picture description here
2、 Will be installed mingw( The path you just chose ) Folder open
Click on this
 Insert picture description here
3、 Mouse click bin Catalog ( It's the red box )
 Insert picture description here
4、 Ready to paste into environment variables
 Insert picture description here
5、 New environment variable , Paste the path ( I have pasted it here before , The last line is ) Insert picture description here

6、 Click ok ( There are many. )

test

1、 Press at the same time win key (alt On the left ) and R key , Input cmd Back carriage return ..
2、 Input :g++ -v
The command used to see the version number .
 Insert picture description here
3、 Almost done , Write a hello world try .
1、 Create a cpp file , Write hello world

#include <bits/stdc++.h>
int main(){
    
    std::cout<<"Hello,World!"<<std::endl;
    return 0;
}

 Insert picture description here
2、 Still on the command line , Input :g++ main.cpp
Be careful , This main.cpp Medium main yes c++ file name , Look at your name .
After pressing, there will be a a.exe Executable program ( and main.cpp The same directory ), Let's type in a.exe( Press tab Key can automatically complete ).
therefore :

 Insert picture description here
I hope I can help you , I think I wrote quite clearly , If you don't understand, you can ask me in the comment area .

原网站

版权声明
本文为[Lanterns can only come to the classroom to experience life]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010552335105.html