在windows gcc,g++环境搭建

一:下载安装C/C++编译器

在windows下有很多集成的编译器,我们只是需要使用gcc.exe 编译而已,所以我们可以随便下,这里推荐使用:MinGW:(附下载官网地址,可直接安装)

https://link.csdn.net/?target=https%3A%2F%2Fmirrors.gigenet.com%2FOSDN%2F%2Fmingw%2F68260%2Fmingw-get-setup.exeicon-default.png?t=N176https://link.csdn.net/?target=https%3A%2F%2Fmirrors.gigenet.com%2FOSDN%2F%2Fmingw%2F68260%2Fmingw-get-setup.exe一直continue,比较关键的两步:

在菜单栏中选择Installation -> Apply Changes 

 安装完成后,需要设置环境变量,让cmd可以找到gcc.exe

在path里添加进C:\MinGW\bin 即可

猜你喜欢

转载自blog.csdn.net/weixin_41012767/article/details/129365597
今日推荐