|
|
从第十章开始,编译就会报错误,以碰撞检测为例:
--------------------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 啊?
请高手帮忙看一下,问题在哪? 谢谢!
|
|