游戏开发论坛

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

我下载的《学OpenGL编游戏》后几章为什么不能编译

[复制链接]

1

主题

1

帖子

7

积分

新手上路

Rank: 1

积分
7
发表于 2005-6-9 17:16:00 | 显示全部楼层 |阅读模式
从第十章开始,编译就会报错误,以碰撞检测为例:

--------------------Configuration: 碰撞检测 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\学opengl编3d游戏_cai\include\inputsystem.h(13) : error C2629: unexpected 'class CKeyboard ('
c:\学opengl编3d游戏_cai\include\inputsystem.h(13) : error C2238: unexpected token(s) preceding ';'
c:\学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
c:\学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(36) : error C2629: unexpected 'class CMouse ('
c:\学opengl编3d游戏_cai\include\inputsystem.h(36) : error C2238: unexpected token(s) preceding ';'
c:\学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
c:\学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(57) : error C2629: unexpected 'class CJoystick ('
c:\学opengl编3d游戏_cai\include\inputsystem.h(57) : error C2238: unexpected token(s) preceding ';'
c:\学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
c:\学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(99) : error C2146: syntax error : missing ';' before identifier 'm_pDI'
c:\学opengl编3d游戏_cai\include\inputsystem.h(99) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
c:\学opengl编3d游戏_cai\include\inputsystem.h(99) : error C2501: 'm_pDI' : missing storage-class or type specifiers
Error executing cl.exe.

碰撞检测.exe - 18 error(s), 0 warning(s)


是不是运行后面几章要装DX SDK 啊?
请高手帮忙看一下,问题在哪? 谢谢!

42

主题

334

帖子

344

积分

中级会员

Rank: 3Rank: 3

积分
344
发表于 2005-6-10 00:04:00 | 显示全部楼层

Re:我下载的《学OpenGL编游戏》后几章为什么不能编译

后几章的鼠标接口需要安装DX8开发包。
在书的配套光盘上给出了不用DX鼠标接口的方法。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-25 23:08

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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