error内容
c++
1#include <opencv2/opencv.hpp>
error
1d:\mingw\include\opencv2\core\utility.hpp:697:14: error: 'recursive_mutex' in namespace 'std' does not name a type 2 typedef std::recursive_mutex Mutex; 3 ^~~~~~~~~~~~~~~ 4d:\mingw\include\opencv2\core\utility.hpp:697:9: note: 'std::recursive_mutex' is defined in header '<mutex>'; did you forget to '#include <mutex>'? 5d:\mingw\include\opencv2\core\utility.hpp:63:1: 6+#include <mutex> 7 #endif 8d:\mingw\include\opencv2\core\utility.hpp:697:9: 9 typedef std::recursive_mutex Mutex; 10 ^~~ 11d:\mingw\include\opencv2\core\utility.hpp:698:29: error: 'Mutex' is not a member of 'cv' 12 typedef std::lock_guard<cv::Mutex> AutoLock; 13 ^~~~~ 14d:\mingw\include\opencv2\core\utility.hpp:698:29: note: suggested alternative: 'Matx' 15 typedef std::lock_guard<cv::Mutex> AutoLock; 16 ^~~~~ 17 Matx 18d:\mingw\include\opencv2\core\utility.hpp:698:29: error: 'Mutex' is not a member of 'cv' 19d:\mingw\include\opencv2\core\utility.hpp:698:29: note: suggested alternative: 'Matx' 20 typedef std::lock_guard<cv::Mutex> AutoLock;
とエラーが出てしまいます
環境
mingw
Atom
お願いします。
回答1件
あなたの回答
tips
プレビュー