OpenCV问题
在VC6.0中配置OpenCV2.2
编译一个程序时,遇到如下错误:不知是什么原因??
--------------------Configuration: OpenCV - Win32 Debug--------------------
Compiling...
OpenCV.cpp
c:\opencv2.2\include\opencv2\core\core.hpp(361) : error C2535: '__thiscall cv::Allocator<U>::cv::Allocator<U>(const class cv::Allocator<U> &)' : member function already defined or declared
c:\opencv2.2\include\opencv2\core\core.hpp(359) : see declaration of 'Allocator<_Tp>::Allocator<_Tp>'
c:\opencv2.2\include\opencv2\core\core.hpp(377) : see reference to class template instantiation 'cv::Allocator<_Tp>' being compiled
c:\opencv2.2\include\opencv2\core\core.hpp(400) : error C2989: 'DataDepth<class ?? ::_Tp *>' : template class has already been defined as a non-template class
c:\opencv2.2\include\opencv2\core\core.hpp(400) : error C2988: unrecognizable template declaration/definition
c:\opencv2.2\include\opencv2\core\core.hpp(499) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Command line warning D4028 : minimal rebuild failure, reverting to normal build
Error executing cl.exe.
OpenCV.exe - 4 error(s), 1 warning(s)