游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4862|回复: 1

进来看一下

[复制链接]

2

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2004-2-25 15:51:00 | 显示全部楼层 |阅读模式
我用DIRECTSOUND写了一个小东西,
可是在compile的时候啊
它居然跟我找出一大堆<dsound.h>&<mmsystem.h>的错误,
这是怎么回事呢????
--------------------Configuration: CAPTURING - Win32 Debug--------------------
Compiling...
CAPTURING.cpp
c:\directx9\include\dsound.h(230) : error C2143: syntax error : missing ';' before '*'
c:\directx9\include\dsound.h(230) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(349) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(349) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(365) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(365) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(365) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(416) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(416) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(416) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(425) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(425) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(425) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(686) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(696) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\directx9\include\dsound.h(770) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(780) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\directx9\include\dsound.h(1041) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(1099) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(728) : error C2373: 'WAVEFORMATEX' : redefinition; different type modifiers
        c:\directx9\include\dsound.h(230) : see declaration of 'WAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(729) : error C2378: 'LPCWAVEFORMATEX' : redefinition; symbol cannot be overloaded with a typedef
        c:\directx9\include\dsound.h(230) : see declaration of 'LPCWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(774) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(830) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
CAPTURINGDlg.cpp
c:\directx9\include\dsound.h(230) : error C2143: syntax error : missing ';' before '*'
c:\directx9\include\dsound.h(230) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(349) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(349) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(365) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(365) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(365) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(416) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(416) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(416) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(425) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\directx9\include\dsound.h(425) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(425) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
c:\directx9\include\dsound.h(686) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(696) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\directx9\include\dsound.h(770) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(780) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\directx9\include\dsound.h(1041) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\directx9\include\dsound.h(1099) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(728) : error C2373: 'WAVEFORMATEX' : redefinition; different type modifiers
        c:\directx9\include\dsound.h(230) : see declaration of 'WAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(729) : error C2378: 'LPCWAVEFORMATEX' : redefinition; symbol cannot be overloaded with a typedef
        c:\directx9\include\dsound.h(230) : see declaration of 'LPCWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(774) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
c:\program files\microsoft visual studio\vc98\include\mmsystem.h(830) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
C:\CAPTURING\CAPTURINGDlg.cpp(23) : error C2146: syntax error : missing ';' before identifier 'g_pWaveFile'
C:\CAPTURING\CAPTURINGDlg.cpp(23) : error C2501: 'CWaveFile' : missing storage-class or type specifiers
C:\CAPTURING\CAPTURINGDlg.cpp(23) : fatal error C1004: unexpected end of file found
dsutil.cpp
c:\directx9\samples\c++\common\src\dsutil.cpp(1646) : fatal error C1010: unexpected end of file while looking for precompiled header directive
dxutil.cpp
c:\directx9\samples\c++\common\src\dxutil.cpp(1104) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.

CAPTURING.exe - 53 error(s), 0 warning(s)

18

主题

573

帖子

573

积分

高级会员

Rank: 4

积分
573
发表于 2004-2-26 23:19:00 | 显示全部楼层

Re:进来看一下

如下包含文件:
保证dsound.h在mmsystem.h后面
#include <mmsystem.h>
#include "dsound.h"
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-2-25 14:28

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表