参考http://blog.youkuaiyun.com/cssmhyl/article/details/8114386编译4.7.2,对原作者表示感谢。
使用g++4.7.2熟悉c++11,遇到下面问题。。
'thread' isnotamemberof 'std
'yield' is not a member of 'std::this_thread'
sleep_for’ is not a member of ‘std::this_thread’
原因是编译时缺少选项所致,导致一些宏未产生在诸如c++config.h这样的文件中,编译出来的gcc有些新的命名空间对象对外隐藏了。