Win Mingw-64获取

首先得了解下三种异常不同实现:

  • SJLJ: slower but available for every architecture.
  • SEH: fastest but limited to 64-bit because of a patent.
  • Dwarf2: faster than SJLJ and usually on par with SEH but has known limitations and bugs; avoid unless you're aware of all of them.

接下来自然是下载,我可是被坑了好蛋疼,没啥好说的,进到下载页,获取两个(目标版本的)mingw-64(其实没必要,就说下win32的吧)

http://sourceforge.net/projects/mingw-w64/files/ 进入到Toolchains targetting Win32再进入到Personal Builds

再进入到/ mingw-builds / 版本号,这下来自己选(下载URL: http://jaist.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.8.2/threads-win32/seh/x86_64-4.8.2-release-win32-seh-rt_v3-rev2.7z),没啥好说的,我于是选了threads-win32,然后选了seh,下载下来就好了,安装解压,放到特定目录,至于设置PATHlib我是不推荐,写个BAT来弄吧

 

那么开写bat.这个我们可以参照下visual studio是怎么弄的

    @set "PATH=XXX"

    @set "LIB=XXX"

    然后CD到你常用放程序的目录就好了

这纯是个废物文章,不过我也被坑了这么久

你可能感兴趣的:(MinGW)