Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building OpenCV with C++11

I attempted to build OpenCV master with C++11, by passing "-std=c++11" as one of the CMAKE_CXX_FLAGS. I'm using g++ 4.7.2. The build failed with this error:

opencv/modules/softcascade/src/_random.hpp:70:13: error: ‘uniform_int’ in namespace ‘std’ does not name a type

Is this a bug, or is C++11 not supported?