Mingw

The MinGW project maintains and distributes a number of different core components and supplementary packages, including various ports of the GNU toolchain, such as GCC and binutils, translated into equivalent packages.[3][7] These utilities can be used from the Windows command line or integrated into an IDE. Packages may be installed using the command line via mingw-get. Mingw contains many components which are used as toolchian in windows, C++, Fortran, Objective-C, and Ada compilers and MSYS.

For windows 64bit platform: http://sourceforge.net/projects/mingw-w64/

mingw-get

http://sourceforge.net/projects/mingw/

CLI(command line interface) installer.

mingw-get-inst

Graphical User Interface Installer

http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/

 

MSYS

a component of MinGW known as MSYS (minimal system) provides Windows ports of a lightweight Unix-like shell environment including rxvt and a selection of POSIX tools sufficient to enable autoconf scripts to run, but it does not provide a C compiler or a case-sensitive file system.

TDM Mingw

http://sourceforge.net/projects/tdm-gcc/?source=recommended

Installation

there are two ways to install mingw: mingw-get(command line interface) installer, mingw-get-inst(GUI) installer and .

Note:

highly reccommend that you use the automated installers provided by MinGW, that means using mingw-get-inst

do not install MinGW in any location with spaces in the path name reference.

TDM-GCC

http://blog.csdn.net/cker/article/details/7303371

http://blogs.msdn.com/b/nativeconcurrency/

 

http://www.cprogramming.com/c++11

http://www.meetingcpp.com/index.php/talks12.html

Belgian C++
http://tdm-gcc.tdragon.net/start

 

codeblock

 

 

mingw

using mingw-get-inst installer,

Environment Settings

When you install command line tools, such as MinGW, or GnuWin32 tools, you have to tell the command line interpreter where to find them. This is usually accomplished by adding the appropriate directory names to the PATH variable in your user environment. The installers will not do this for you.

NOTE If you choose to alter your PATH variable, you must ensure you alter your user PATH variable, not your system PATH variable -- there are two of them!

NOTE: If you installed MSYS, you may also want to add ";<installation-directory>\MSYS\1.0\local\bin", and ";<installation-directory>\MSYS\1.0\bin" to the end of your user PATH variable.

 

std::thread has been tested not supported by mingw32 on gcc4.7.1 or other gcc version. should use boost::thread

use boost::thread

b2 --toolset=gcc –build-dir=mingw/win32 –build-type=complete --stagedir=mingw/win32 –with-thread

change the compiler tool chain

#include <boost/thread.hpp>
using namespace std;
int main()
{
boost::thread t;
t.join(); // do nothing
}

use -std=c++11 and linker named libboost_thread-mgw47-mt-d-1_53.dll.a and libboost_system-mgw47-mt-d-1_53.dll.a

and add directory into the “Search Directories”

compiler: $(#boost_dir)

Linker: $(#boost_dir)\mingw\win32\lib

Add the global variable: boost_dir

Note: if you encounter error shown

无法找到入口

---------------------------

无法定位程序输入点 __gxx_personality_v0 于动态链接库

make sure you use the same tool chain which you used to compile boost.

rebuild the code

how to install mingw64 for 64bit system, as mingw only for 32bit platform

MinGW和MinGW64不是一个项目组,MinGW64从来就没有在线安装程序,他的gcc打包都是由ruben/sizero或者第三方编译者各自编译完成的。

MinGW-64可以编译32位程序,参数 -m32  -m64  分别编译32位、64位程序 可以编译成混合版本

我们一般建议编译成独立的x86/x64版本,混合编译版本会有很多莫名其妙的问题

we can use the already buildup release to help us.

download the package from http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/

and then unzip the package to an folder without space character;

cc1plus libgmp-10.dll libmpc-2.dll可以通过使用

mingw-get install libmpc

mingw-get install libgmp来解决

最新文章

  1. Atitit Atitit.软件兼容性原理----------API兼容 Qa7
  2. android Animation介绍
  3. 随鼠标轮动翻动层————jquery小练习
  4. C %p
  5. Linux环境下搭建Tomcat+mysql+jdk
  6. CNAPS Code 查询(招商银行)
  7. julia文件合并排序.jl
  8. Weblogic环境下hibernate、antlr类加载冲突问题分析及解决方案
  9. 利用COPYDATASTRUCT传递命令行参数给驻留内存的进程(SendMessage应用)
  10. [swustoj 1023] Escape
  11. 来看看Github上流行的编码规范
  12. 安装、设置与启动MySql绿色版的方法
  13. 深入分析Java单例模式的各种方案
  14. 2017-07-20聊聊《C#本质论》
  15. Ubuntu硬盘空间清理
  16. Centos7+nginx+keepalived集群及双主架构案例
  17. vue调用Moment显示时间
  18. BZOJ1179 [Apio2009]Atm Tarjan 强连通缩点 动态规划
  19. 通过python-libvirt管理KVM虚拟机 源码
  20. MySQL-5.6版本GTID的主从复制

热门文章

  1. loj2013 「SCOI2016」幸运数字
  2. 【Codeforces Round #476 (Div. 2) [Thanks, Telegram!] C】Greedy Arkady
  3. 【LeetCode】Balanced Binary Tree(平衡二叉树)
  4. tzcacm去年训练的好题的AC代码及题解
  5. HLG2179 组合(dfs水水更健康)
  6. php中 ob_start()有什么作用
  7. HDU——2067小兔的棋盘(卡特兰数&amp;递推DP)
  8. HDU-2234 无题I
  9. BZOJ 4554 [Tjoi2016&amp;Heoi2016]游戏 ——二分图
  10. Nginx+keepalived构建双主负载均衡代理服务器