游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1151|回复: 0

编译DX9c例子程序出错-高手帮看下

[复制链接]

12

主题

88

帖子

188

积分

注册会员

Rank: 2

积分
188
发表于 2009-5-4 10:12:00 | 显示全部楼层 |阅读模式
以上编译环境是VC6.0。我把例子文件(.h 和 .cpp文件)加入工程中,也把DXSDK的include 和 lib配置好了。单个cpp文件编译没一个通过的。以下是编译DxStdAfx.cpp出错信息:
--------------------Configuration: DX9 - Win32 Debug--------------------
Compiling...
dxstdafx.cpp
d:\dxsdk9c\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
d:\dxsdk9c\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
d:\dxsdk9c\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(71) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(72) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(73) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(74) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(75) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(76) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxut.h(11) : fatal error C1189: #error :  "DXUT requires a Unicode build. See the nearby comments for details"
执行 cl.exe 时出错.

dxstdafx.obj - 1 error(s), 0 warning(s)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-20 12:46

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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