install c++/g++ on windows

 
 

install c++/g++ on windows

1. 算是提示吧:

Pick the drive and a folder in which you want to install g++. I’ll assume that it is C:, but you can choose a different one. If you choose a different drive or a different folder, you’ll need to adapt the directions below accordingly.

2 下载 full.exe

这个文件的安全性不懂,反正下载了安装后就有一些在Linux常看到的指令的.exe文件比如ls mv … (这个让我意外收获了,我是一个喜欢在Linux下码的boy)下载完后点击安装。

3 添加环境变量

Start -> Control Panel -> System -> Advanced -> Environment Variables双击PATH编辑,以;作为分隔添加环境变量的路径:C:\cygnus\cygwin-b20\H-i586-cygwin32\bin这个路径应该都是一样的。注意不要使用pwd命令然后复制路径,斜杠会成这样的/cygnus/cygwin-b...因为在哪个文件路径下有pwd.exe这个程序。被坑了

4 重启

g++ -g hello.cpp -o hello -lm这个命令就可以用了
and 一些实用的Linux命令
warmingA Cygnus Solutions entry will appear in your Programs menu, and an icon may appear on your desktop. Don’t use them!

If you’d like to learn more about where this free compiler came from, we downloaded it from an older site of http://sourceware.org/cygwin/

 

最新文章

  1. Ubuntu14.04解决远程root-ssh拒绝登录
  2. Html 文档在线编辑器
  3. 【Cocos2d-x 3.x】 调度器Scheduler类源码分析
  4. flexbox布局
  5. Stunnel使用2
  6. centos Apache、php、mysql默认安装路径
  7. Python-装饰器详解
  8. POJ 3335 Rotating Scoreboard(多边形的核)
  9. tomcat源码导入eclipse步骤
  10. 如何设置电脑的IP
  11. Object类、instanceof
  12. 编程算法 - 求1+2+...+n(函数指针) 代码(C++)
  13. jdk自带的动态代理
  14. 看源码和写demo是一种比较容易提升的方式
  15. 如何成为一个javascript高手【转载】
  16. esxi 改变虚拟机磁盘格式为精简存储
  17. java的制作"时间账本"
  18. eclipse上配置svn
  19. 卸载(uninstalled)Mac os Jenkins pkg 安装包
  20. Vuejs——(7)过渡(动画)

热门文章

  1. saiku的源码包Bulid常见问题和jar包
  2. es6笔记6^_^generator
  3. Centos6.5 mysql折腾记
  4. C# 得到本机局域网IP地址
  5. Java程序性能优化读书笔记(一):Java性能调优概述
  6. [html5] 学习笔记-bootstrap介绍
  7. [html5] 学习笔记-html5增强的页面元素
  8. 笑谈ArcToolbox (4) 非我族类
  9. python之列表对象
  10. 用《内网穿山甲》把本地IIS中的站点共享到远程访问