Undefined errors (C++)

I tried for a few hours to use it with different versions of openCV and created CodeBlocks projects of openCV but I always have many “Mutex” errors when I try to compile it.
(ex : “Mutex in namespace std does not name a type”)