惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
DataBreaches.Net
B
Blog RSS Feed
博客园_首页
The GitHub Blog
The GitHub Blog
I
InfoQ
L
LangChain Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
美团技术团队
腾讯CDC
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗

博客园 - 谢绝围观

LeetCode 910. Smallest Range II EAC 抓取CD为AAC文件 Binary Indexed Tree (Fenwick Tree) Lint Code 1365. Minimum Cycle Section LintCode 896. Prime Product 简明题解 UVa 1471 - Defense Lines 详解LeetCode 137. Single Number II LeetCode 309. Best Time to Buy and Sell Stock with Cooldown LeetCode 84. Largest Rectangle in Histogram 修改注册表删除Windows资源管理器 “通过QQ发送” 右键菜单项 LeetCode 312. Burst Balloons LeetCode 287. Find the Duplicate Number LeetCode 10. Regular Expression Matching LeetCode 117. Populating Next Right Pointers in Each Node II 在Windows Azure VM下搭建SSTP VPN - 谢绝围观 利用.NET Code Contracts实现运行时验证 Log4net 配置实例 解决Windows Server 2012 下利用RRAS创建VPN断线的问题 - 谢绝围观 慎用静态类static class
Windows下安装配置MinGW GCC调试环境
谢绝围观 · 2017-08-20 · via 博客园 - 谢绝围观
  • 下载安装文件:Sourceforge  64位系统安装选项记得选x86_64。安装过程中连不上服务器的话也可以选择下载压缩包
  • 配置环境变量,假设mingw安装目录为C:\mingw-w64\mingw64
  1. 把mingw的bin文件夹加入系统环境变量Path: 管理员权限命令行下执行:
    setx -m PATH "%PATH%;C:\mingw-w64\mingw64\bin
  2. 设置MINGW_HOME变量: 
    setx MINGW_HOME "C:\mingw-w64\mingw64"
  • 将以下内容存成batch文件,如build.bat:
    g++ -I%MINGW_HOME%\include -Wl,-enable-auto-import -std=c++14 -DLOCAL -Wall -o MyApp.exe %1
    MyApp

    使用:

    build.bat HelloWorld.cpp

    会编译目标cpp文件,如果成功会执行输出的.exe文件。

  • 附: C++ STL 速查手册: Zeal

posted on 2017-08-20 07:32  谢绝围观  阅读(2754)  评论(0)    收藏  举报