Does gcc 4.7.1 support threads?

前端 未结 3 1043
-上瘾入骨i
-上瘾入骨i 2020-12-19 06:12

I followed the instruction here on setting up CodeBlocks to use GCC 4.7.1 .the sample provided at the page i mentioned is compiled just fine,But when i tried to compile the

相关标签:
3条回答
  • 2020-12-19 06:30

    Try MinGw builds:

    http://sourceforge.net/projects/mingwbuilds/

    This installer will allow you to choose whatever MinGW you want and also includes c++11 thread functionality.

    0 讨论(0)
  • 2020-12-19 06:38

    With mingw, the thread support of gcc depends on which build you get. Some builds don't support threads, others do.

    I believe that the mingw build at http://code.google.com/p/mingw-builds/downloads/list supports threads.

    0 讨论(0)
  • 2020-12-19 06:38

    MinGW simply won't compile with '-std=c++0x'. Strange enough, '-std=gnu++0x' works.

    0 讨论(0)
提交回复
热议问题