1 | $ make
|
2 | [ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.obj
|
3 | In file included from C:/MinGW/googletest/googletest/include/gtest/gtest-message.h:55,
|
4 | from C:/MinGW/googletest/googletest/include/gtest/gtest-assertion-result.h:46,
|
5 | from C:/MinGW/googletest/googletest/include/gtest/gtest.h:59,
|
6 | from C:\MinGW\googletest\googletest\src\gtest-all.cc:38:
|
7 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1244:8: error: 'mutex' in namespace 'std' does not name a type
|
8 | std::mutex mu_;
|
9 | ^~~~~
|
10 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1244:3: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
|
11 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:758:1:
|
12 | +#include <mutex>
|
13 | #endif // GTEST_IS_THREADSAFE
|
14 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1244:3:
|
15 | std::mutex mu_;
|
16 | ^~~
|
17 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1245:8: error: 'condition_variable' in namespace 'std' does not name a type
|
18 | std::condition_variable cv_;
|
19 | ^~~~~~~~~~~~~~~~~~
|
20 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1245:3: note: 'std::condition_variable' is defined in header '<condition_variable>'; did you forget to '#include <condition_variable>'?
|
21 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:758:1:
|
22 | +#include <condition_variable>
|
23 | #endif // GTEST_IS_THREADSAFE
|
24 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1245:3:
|
25 | std::condition_variable cv_;
|
26 | ^~~
|
27 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h: In member function 'void testing::internal::Notification::Notify()':
|
28 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:26: error: 'mutex' is not a member of 'std'
|
29 | std::lock_guard<std::mutex> lock(mu_);
|
30 | ^~~~~
|
31 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:26: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
|
32 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:26: error: 'mutex' is not a member of 'std'
|
33 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:26: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
|
34 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:31: error: template argument 1 is invalid
|
35 | std::lock_guard<std::mutex> lock(mu_);
|
36 | ^
|
37 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:38: error: 'mu_' was not declared in this scope
|
38 | std::lock_guard<std::mutex> lock(mu_);
|
39 | ^~~
|
40 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1233:5: error: 'cv_' was not declared in this scope
|
41 | cv_.notify_all();
|
42 | ^~~
|
43 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1233:5: note: suggested alternative: 'gcvt'
|
44 | cv_.notify_all();
|
45 | ^~~
|
46 | gcvt
|
47 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1231:33: warning: unused variable 'lock' [-Wunused-variable]
|
48 | std::lock_guard<std::mutex> lock(mu_);
|
49 | ^~~~
|
50 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h: In member function 'void testing::internal::Notification::WaitForNotification()':
|
51 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:27: error: 'mutex' is not a member of 'std'
|
52 | std::unique_lock<std::mutex> lock(mu_);
|
53 | ^~~~~
|
54 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:27: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
|
55 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:27: error: 'mutex' is not a member of 'std'
|
56 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:27: note: 'std::mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
|
57 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:32: error: template argument 1 is invalid
|
58 | std::unique_lock<std::mutex> lock(mu_);
|
59 | ^
|
60 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1239:39: error: 'mu_' was not declared in this scope
|
61 | std::unique_lock<std::mutex> lock(mu_);
|
62 | ^~~
|
63 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1240:5: error: 'cv_' was not declared in this scope
|
64 | cv_.wait(lock, [this]() { return notified_; });
|
65 | ^~~
|
66 | C:/MinGW/googletest/googletest/include/gtest/internal/gtest-port.h:1240:5: note: suggested alternative: 'gcvt'
|
67 | cv_.wait(lock, [this]() { return notified_; });
|
68 | ^~~
|
69 | gcvt
|
70 | make[2]: *** [googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.obj] Error 1
|
71 | make[1]: *** [googletest/CMakeFiles/gtest.dir/all] Error 2
|
72 | make: *** [all] Error 2
|