vc编译程序时,出现头文件中的很多语法错误,明明是厂商提供的,为什么会有这样的情况?
我做了一个解码程序,其它都正确了,就是在进行rebuild all的时候出现很多头文件的语法错误,如下所示:
Decode.cpp
G:\DXSDK\INCLUDE\BASEINCLUDE\wxutil.h(530) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\ctlutil.h(437) : error C2504: 'IBasicVideo2' : base class undefined
G:\DXSDK\INCLUDE\BASEINCLUDE\ctlutil.h(904) : error C2146: syntax error : missing ';' before identifier 'm_dwAdvise'
G:\DXSDK\INCLUDE\BASEINCLUDE\ctlutil.h(904) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\ctlutil.h(904) : error C2501: 'm_dwAdvise' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(286) : error C2061: syntax error : identifier 'LONG_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(953) : error C2504: 'IPinFlowControl' : base class undefined
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(984) : error C2061: syntax error : identifier 'IGraphConfig'
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1069) : error C2143: syntax error : missing ';' before '*'
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1069) : error C2501: 'IGraphConfig' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1069) : error C2501: 'm_pGraphConfig' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1342) : error C2504: 'IMemAllocatorCallbackTemp' : base class undefined
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1446) : error C2143: syntax error : missing ';' before '*'
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1446) : error C2501: 'IMemAllocatorNotifyCallbackTemp' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1446) : error C2501: 'm_pNotify' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\amfilter.h(1508) : error C2061: syntax error : identifier 'IMemAllocatorNotifyCallbackTemp'
G:\DXSDK\INCLUDE\BASEINCLUDE\renbase.h(68) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\renbase.h(78) : error C2146: syntax error : missing ';' before identifier 'm_dwAdvise'
G:\DXSDK\INCLUDE\BASEINCLUDE\renbase.h(78) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\renbase.h(78) : error C2501: 'm_dwAdvise' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\winctrl.h(21) : error C2504: 'CBaseWindow' : base class undefined
G:\DXSDK\INCLUDE\BASEINCLUDE\winctrl.h(103) : error C2061: syntax error : identifier 'LONG_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(24) : error C2146: syntax error : missing ';' before identifier 'AddAdvisePacket'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(24) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(26) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(47) : error C2146: syntax error : missing ';' before identifier 'm_dwAdviseCookie'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(47) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(47) : error C2501: 'm_dwAdviseCookie' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(87) : error C2146: syntax error : missing ';' before identifier 'Cookie'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(87) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(90) : warning C4183: 'Cookie': member function definition looks like a ctor, but name does not match enclosing class
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(100) : error C2146: syntax error : missing ';' before identifier 'm_dwNextCookie'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(100) : error C2501: 'm_dwNextCookie' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(106) : error C2146: syntax error : missing ';' before identifier 'AddAdvisePacket'
G:\DXSDK\INCLUDE\BASEINCLUDE\dsschedule.h(106) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
G:\DXSDK\INCLUDE\BASEINCLUDE\refclock.h(103) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\refclock.h(111) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\refclock.h(121) : error C2061: syntax error : identifier 'DWORD_PTR'
G:\DXSDK\INCLUDE\BASEINCLUDE\sysclock.h(20) : error C2504: 'IAMClockAdjust' : base class undefined
G:\DXSDK\INCLUDE\BASEINCLUDE\streams.h(161) : fatal error C1083: Cannot open include file: 'audevcod.h': No such file or directory
当我注释掉这些头文件的时候程序会出错,如何处理这些错误?