SVN Build 3277 fails in Visual Studio 2008 (Bug #413)
Description
Lots of errors like this
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(659) : error C2065: 'v' : undeclared identifier
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : error C2433: 'cv::Matx<_Tp,m,n>::{ctor}' : 'inline' not permitted on data declarations
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : warning C4346: 'cv::Matx<_Tp,m,n>::base_type' : dependent name is not a type
prefix with 'typename' to indicate a type
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : error C2350: 'cv::Matx<_Tp,m,n>::{ctor}' is not a static member
lbpfeatures.cpp
Related issues
duplicated by Bug #417: rev 3294 does not build | Cancelled |
Associated revisions
Merge pull request #413 from berak:master
History
Updated by stathis -- over 14 years ago
I had the same issue with R3283 compiling with Visual Studio 2010 on Windows 7. I modified opencv/modules/core/include/opencv2/core/operations.hpp, lines from 660:
template<typename _Tp, int m, int n>
inline Matx<_Tp,m,n>::Matx(const Matx<_Tp,m,n>::base_type& v)
: base_type(v)
{
}
to read
template<typename _Tp, int m, int n>
inline Matx<_Tp,m,n>::Matx(const typename Matx<_Tp,m,n>::base_type& v)
: base_type(v)
{
}
compiles ok for me.
Replying to niall:
Lots of errors like this
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(659) : error C2065: 'v' : undeclared identifier
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : error C2433: 'cv::Matx<_Tp,m,n>::{ctor}' : 'inline' not permitted on data declarations
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : warning C4346: 'cv::Matx<_Tp,m,n>::base_type' : dependent name is not a type
prefix with 'typename' to indicate a type
C:\opencv_svn\modules\core\include\opencv2/core/operations.hpp(662) : error C2350: 'cv::Matx<_Tp,m,n>::{ctor}' is not a static member
lbpfeatures.cpp
Updated by Niall O'Hara over 14 years ago
That works, thanks :)
Hopefully someone will patch the file if it builds ok in other environments
Updated by Joaquim Luis over 14 years ago
Thanks Niall,
Your patch worked fine.
Pity that more care is not put into always have a compilable trunk version.
Updated by Niall O'Hara over 14 years ago
fixed in R3295
- Status changed from Open to Done
- (deleted custom field) set to fixed