Lots of "conflicts with previous declaration"

asked 2013-11-29 09:42:35 -0500

nevhir gravatar image

Hello.

I have installed opencv 2.4.7 on Windows 7 with Eclipse and MinGW, linked the libraries and added the include path but, when I try to compile a simple project. Even one without any real use of the opencv functions, just including the headers:

#include "opencv2/core/core.hpp"

the compiler throws me lots of error of conflict with previous declaration like (showing just some of them but I can provide you the whole thing)

C:/opencv/build/include/opencv2/core/operations.hpp:2014: declaration of `template<class T2> cv::Scalar_::operator cv::Scalar_<T2>() const [with T2 = T2, _Tp = double]'
C:/opencv/build/include/opencv2/core/core.hpp:952: conflicts with previous declaration `template<class T2> cv::Scalar_::operator cv::Scalar_<T2>() const [with T2 = T2, _Tp = double]'
C:/opencv/build/include/opencv2/core/operations.hpp:2014: declaration of `template<class T2> cv::Scalar_::operator cv::Scalar_<T2>() const [with T2 = T2, _Tp = double]'
C:/opencv/build/include/opencv2/core/core.hpp:952: conflicts with previous declaration `template<class T2> cv::Scalar_::operator cv::Scalar_<T2>() const [with T2 = T2, _Tp = double]'

┬┐Does anyone know how to fix this?

Thanks

edit retag flag offensive close merge delete