Compile error with -std=gnu++0x (Bug #2519)
Description
I am using Opencv2.4.2 in Ubuntu 12.04. When I try to compile my code with -std=gnu++0x as an option to g++, I get the following error.
In file included from /usr/local/include/opencv2/flann/lsh_index.h:49:0,
from /usr/local/include/opencv2/flann/all_indices.h:42,
from /usr/local/include/opencv2/flann/flann_base.hpp:44,
from /usr/local/include/opencv2/flann/flann.hpp:50,
from /usr/local/include/opencv/cv.h:69,
from sample.cpp:3:
/usr/local/include/opencv2/flann/lsh_table.h: In member function ‘void cvflann::lsh::LshTable<ElementType>::add(cvflann::Matrix<T>)’:
/usr/local/include/opencv2/flann/lsh_table.h:196:14: error: ‘use_speed_’ was not declared in this scope
It seems that a fix was checked in http://code.opencv.org/issues/2179#note-1, but I still see the error.
History
Updated by Marius Muja over 12 years ago
This was fixed in release 2.4.3.
- Status changed from Open to Done
Updated by Andrey Kamaev over 12 years ago
- Target version set to 2.4.3