C里不能使用__m128i类型吗
扣源码时,编译出错,报错如下:
d_density_prj_opencv246\featuredescriptor\featuredescriptor.c(736) : error C2275: '__m128i' : illegal use of this type as an expression
1> c:\program files\microsoft visual studio 9.0\vc\include\emmintrin.h(45) : see declaration of '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(736) : error C2146: syntax error : missing ';' before identifier 'qx_init'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(736) : error C2065: 'qx_init' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(736) : error C2440: '=' : cannot convert from '__m128i' to 'int'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(737) : error C2275: '__m128i' : illegal use of this type as an expression
1> c:\program files\microsoft visual studio 9.0\vc\include\emmintrin.h(45) : see declaration of '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(737) : error C2146: syntax error : missing ';' before identifier 'dx'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(737) : error C2065: 'dx' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(737) : error C2440: '=' : cannot convert from '__m128i' to 'int'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2275: '__m128i' : illegal use of this type as an expression
1> c:\program files\microsoft visual studio 9.0\vc\include\emmintrin.h(45) : see declaration of '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2146: syntax error : missing ';' before identifier 'z'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2440: '=' : cannot convert from '__m128i' to 'int'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx0' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx1' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx2' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx3' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(738) : error C2065: 'qx_init' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(742) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(742) : error C2440: 'function' : cannot convert from 'int' to '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(742) : warning C4024: '_mm_unpacklo_epi8' : different types for formal and actual parameter 2
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2065: 'qx0' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2065: 'qx0' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2440: 'function' : cannot convert from 'int' to '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : warning C4024: '_mm_add_epi32' : different types for formal and actual parameter 1
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2065: 'z' : undeclared identifier
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2440: 'function' : cannot convert from 'int' to '__m128i'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : warning C4024: '_mm_sad_epu8' : different types for formal and actual parameter 2
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(743) : error C2440: '=' : cannot convert from '__m128i' to 'int'
1>c:\code\crowddensity\trunk\crowd_density_prj_opencv246\featuredescriptor\featuredescriptor.c(744) : error C2275: '__m128i' : illegal use of this type as an expression
1> c:\program files\microsoft visual studio 9.0\vc\include\emmintrin.h(45) : see declaration of '__m128i'