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来解决

Mingw/Code::Block/wxWidgets 搭建的更多相关文章

  1. Dev-Cpp/Code::Block/MinGW下使用EasyX

    众所周知,EasyX是个很香的东西,但EasyX目前只支持Visual Studio,那么如果要在MinGW(Dev-Cpp和Code::Block均使用这个编译器)上使用EasyX怎么办呢? 这篇文 ...

  2. CODE:BLOCK中的CreateProcess: No such file or directory

    现象: WINDOWS安装MINGW4.8.1,环境变量设置后,命令行窗体G++能够执行.但编译文件时提示: CreateProcess: No such file or directory. 安装C ...

  3. A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{" are valid at the start of a code block and they must occur immediately following

    mvc 控制器调用分布视图出错,("A space or line break was encountered after the "@" character. Only ...

  4. Confluence代码块(Code Block)宏

    有时候现在wiki上插入代码,如何让代码高亮,变的有颜色,下面这篇文章可能会帮助你,先看下django代码高亮效果图 代码块(Code Block)宏允许你在 Confluence 页面中显示代码,并 ...

  5. [编译] 2、minGW gcc在windows搭建编译win32程序环境

    1.普通下载一个MinGW程序.安装之后可以直接将MinGW目录拷贝到总工程的tool里面: demo_mesh_common tree -L 2 . ├── app ├── bin ├── buil ...

  6. 使用Visual Studio Code + Node.js搭建TypeScript开发环境

    Visual Studio Code搭建Typescript开发环境 —— 相关文章: http://www.cnblogs.com/sunjie9606/p/5945540.html [注意:这里仅 ...

  7. C++ MinGW 配合 Sublime Text 搭建

    本文主旨 使用MinGW 和 文本编辑器 Sublime Text,来搭建c++编译的平台. Sublime Text 安装 和 解除限制 http://rainss.cn/essay/1124.ht ...

  8. VScode(一):C/C++ & MinGW & Code Runner

    目录 1 VScode配置安装 2 MinGW配置安装 2.1 MinGW下载安装 2.2 MinGW环境配置 3 VScode编译C/C++ 3.1 扩展插件安装 3.2 项目配置 3.2.1 配置 ...

  9. MinGW/MSYS 交叉编译环境搭建

    因为包的依赖关系不清楚,搭建时出错也不知道是什么原因,下面链接老外写的搭建步骤,写的非常详细还有脚本 已经编译的下载地址 http://ingar.satgnu.net/devenv/mingw32/ ...

随机推荐

  1. ReportViewer部分使用总结

    最近winform上使用ReportViewer做报表,因为之前没弄过,所以遇到了很多问题,现在总结一下. 一.运行环境 .net环境:4.0 开发工具:vs2010 二.开发步骤 第一步,在winf ...

  2. python基础学习笔记——正则表达式

    1.什么是正则? 正则就是用一些具有特殊含义的符号组合到一起(称为正则表达式)来描述字符或者字符串的方法.或者说:正则就是用来描述一类事物的规则.(在Python中)它内嵌在Python中,并通过 r ...

  3. 配置LAMP环境

    对我这种Linux小菜鸡来说,集成环境是最好的选择. 一,下载wget --no-check-certificate https://github.com/teddysun/lamp-yum/arch ...

  4. 《Scrum实战》第1课【知易行难】全团课后任务汇总

          1组 孟帅(班长)   kecyru 2017-7-5 http://kecyru.blog.163.com/blog/static/27416617320176411513013 htt ...

  5. 博客笔记(blog notebook)

    1. 机器学习 2. NLP 3. code 实际好人 实际坏人 预测百分比 预测好人 \(p_GF^c(s_c\|G)\) \(p_BF^c(s_c\|B)\) \(F^c(s_c)\) 预测坏人 ...

  6. LibreOJ β Round #4

    A游戏 内存限制:256 MiB时间限制:1000 ms标准输入输出 题目类型:传统评测方式:文本比较 上传者: qmqmqm 提交提交记录统计讨论测试数据   题目描述 qmqmqm和subline ...

  7. 【bzoj1283】序列 线性规划与费用流

    题目描述 给出一个长度为 的正整数序列Ci,求一个子序列,使得原序列中任意长度为 的子串中被选出的元素不超过K(K,M<=100) 个,并且选出的元素之和最大. 输入 第1行三个数N,m,k. ...

  8. 周赛Problem 1021: 分蛋糕(埃拉托斯特尼筛法)

    Problem 1021: 分蛋糕 Time Limits:  1000 MS   Memory Limits:  65536 KB 64-bit interger IO format:  %lld  ...

  9. [LOJ#113]最大异或和

    [LOJ#113]最大异或和 试题描述 这是一道模板题. 给由 n 个数组成的一个可重集 S,求一个集合 T⊆S,使 T1 xor T2 xor … xor T|T| 最大 输入 第一行一个数 n.第 ...

  10. iOS-汉字排序

    * 在IOS开发过程中,排序是我们经常遇到的问题,那么如何进行排序呢? * 在英文状态下,系统中有直接可以调用的方法.    例如:对数组[sss, aaa, bbb, ppp]进行排序,我们可以直接 ...