|
|
我装了direct x9.0 sdk,使用vc++6.0.不知道为什么只是加入了#include <dsound.h>,程序就有错了。错误如下:
include\dsound.h(230) : error C2143: syntax error : missing ';' before '*'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(230) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(349) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(349) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(365) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(365) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(365) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(416) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(416) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(416) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(425) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(425) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(425) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(686) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(696) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(770) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(780) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(1041) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(1099) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
e:\microsoft visual studio\vc98\include\mmsystem.h(728) : error C2373: 'WAVEFORMATEX' : redefinition; different type modifiers
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(230) : see declaration of 'WAVEFORMATEX'
e:\microsoft visual studio\vc98\include\mmsystem.h(729) : error C2378: 'LPCWAVEFORMATEX' : redefinition; symbol cannot be overloaded with a typedef
e:\program files\microsoft directx 9.0 sdk (february 2005)\include\dsound.h(230) : see declaration of 'LPCWAVEFORMATEX'
e:\microsoft visual studio\vc98\include\mmsystem.h(774) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
e:\microsoft visual studio\vc98\include\mmsystem.h(830) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
Error executing cl.exe.
FRIGHT.exe - 30 error(s), 0 warning(s)
请问是否我装的directx 不行? |
|