Strange problems of OpenCV when building my program with vs2010

asked 2012-11-15 23:50:29 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

When I built my program in vs2010, I got some strange errors of OpenCV:


2>d:\opencv\build\include\opencv2\flann\any.h(198): error C2143: syntax error : missing ';' before '&'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(198): error C3857: 'cvflann::any': multiple template parameter lists are not allowed
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(199): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(199): error C2143: syntax error : missing ',' before '&'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(200): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(205): warning C4183: 'assign': missing return type; assumed to be a member function returning 'int'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(208): error C2143: syntax error : missing ';' before '&'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(208): error C3857: 'cvflann::any': multiple template parameter lists are not allowed
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(209): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(209): error C2143: syntax error : missing ',' before '&'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(210): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(202): error C2974: 'cvflann::anyimpl::get_policy' : invalid template argument for 'T', type expected
2>  
2>          d:\opencv\build\include\opencv2\flann\any.h(140) : see declaration of 'cvflann::anyimpl::get_policy'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(203): error C2065: 'x' : undeclared identifier
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(204): error C2440: 'return' : cannot convert from 'cvflann::any' to 'int &'
2>  
2>d:\opencv\build\include\opencv2\flann\any.h(211): error C2065: 'x' : undeclared identifier
2>  
2>d:\opencv\build\include\opencv2\flann\params.h(51): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\kmeans_index.h(69): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\composite_index.h(60): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\autotuned_index.h(58): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\autotuned_index.h(60): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\autotuned_index.h(62): warning C4244: 'argument' : conversion from 'float' to 'const int', possible loss of data
2>  
2>d:\opencv\build\include\opencv2\flann\autotuned_index.h(64): warning C4244: 'argument' : conversion from 'float ...
(more)
edit retag flag offensive close merge delete

Comments

Which OpenCV version do you use?

Daniil Osokin gravatar imageDaniil Osokin ( 2012-11-16 02:26:28 -0500 )edit