本文介绍了NuiSensor.h中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我想我错过了一些项目设置,这些设置在使用typedef接口



1> C:\Program Files \ microsoftoft SDKs \Kinect\v1.0\inc\NuiSensor.h(46):错误C2146:语法错误:在标识符'INuiAudioBeam'之前缺少';''
1> C:\Program Files \ microsoftoft SDKs \Kinect\v1.0\inc\NuiSensor.h(46) :错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持default-int

1> C:\Program Files \ microsoftoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46):error C2146:语法错误:标识符'INuiAudioBeam'之前缺少';'
1> C:\Program Files \ Microsoft软件SDK \ Kinect \v1.0 \\\NuiSensor.h (46):错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持default-int

1> C:\Program Files \ microsoftoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46):error C4430:缺少类型说明符 - 假定为int。注意:C ++不支持default-int

1> C:\Program Files \ microsoftoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46):error C2086:'int INuiAudioBeam':重新定义

1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46):参见'INuiAudioBeam'的声明`

1> C:\ Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52):错误C2146:语法错误:在标识符'INuiFrameTexture'之前缺少';'
1> ; C:\Program Files \ microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52):警告C4091:'':当没有声明变量时忽略'interface'的左边

1> C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58):错误C2146:语法错误:缺少';'之前标识符'INuiSensor'

1> C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58):警告C4091:'':当没有声明变量时,在'interface'的左侧忽略了。
1> C:\Program Files \ MicroSoft SDKs\Kinect\v1.0 \\ NuiSensor.h(385):错误C2371:'INuiFrameTexture':重新定义;不同的基本类型

1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52):查看'INuiFrameTexture'的声明


1> C:\ Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(508):错误C2371:'INuiSensor':重新定义;不同的基本类型

1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58):见"INuiSensor"声明

1> C:\ Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(596):错误C2061:语法错误:标识符'INuiAudioBeam'

1> C:\ Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(870):错误C2061:语法错误:标识符'INuiAudioBeam'

解决方案


Hi

I think i am missing some project settings that is causing the error in compiling NuiSensor.h when its using typedef interface

I am trying to include kinect in an existing application and not sure what settings are causing it not to recognize the typedef interface. Any help?

1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C2146: syntax error : missing ';' before identifier 'INuiAudioBeam'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C2146: syntax error : missing ';' before identifier 'INuiAudioBeam'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : error C2086: 'int INuiAudioBeam' : redefinition
1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(46) : see declaration of 'INuiAudioBeam'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52) : error C2146: syntax error : missing ';' before identifier 'INuiFrameTexture'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58) : error C2146: syntax error : missing ';' before identifier 'INuiSensor'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(385) : error C2371: 'INuiFrameTexture' : redefinition; different basic types
1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(52) : see declaration of 'INuiFrameTexture'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(508) : error C2371: 'INuiSensor' : redefinition; different basic types
1>        C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(58) : see declaration of 'INuiSensor'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(596) : error C2061: syntax error : identifier 'INuiAudioBeam'
1>C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc\NuiSensor.h(870) : error C2061: syntax error : identifier 'INuiAudioBeam'

解决方案


这篇关于NuiSensor.h中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 07:43