C++ mutex in namespace std does not name a type

前端 未结 11 914
日久生厌
日久生厌 2020-11-28 13:22

I\'m writing a simple C++ program to demonstrate the use of locks. I am using codeblocks and gnu gcc compiler.

 #inclu         


        
11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 13:43

    I got the same error with gcc4.7.7.

    After adding "-std=c++0x", it is fixed.

提交回复
热议问题