|
|
在下载解压后,编译碰撞检测一节程序时出现了以下错误:
--------------------Configuration: 碰撞检测 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
学opengl编3d游戏_cai\include\inputsystem.h(13) : error C2629: unexpected 'class CKeyboard ('
学opengl编3d游戏_cai\include\inputsystem.h(13) : error C2238: unexpected token(s) preceding ';'
学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(27) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(36) : error C2629: unexpected 'class CMouse ('
学opengl编3d游戏_cai\include\inputsystem.h(36) : error C2238: unexpected token(s) preceding ';'
学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(49) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(57) : error C2629: unexpected 'class CJoystick ('
学opengl编3d游戏_cai\include\inputsystem.h(57) : error C2238: unexpected token(s) preceding ';'
学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(66) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
学opengl编3d游戏_cai\include\inputsystem.h(99) : error C2146: syntax error : missing ';' before identifier 'm_pDI'
学opengl编3d游戏_cai\include\inputsystem.h(99) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
学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)
请问怎么解决啊?那个是从这上面下载的,原程序没动,但照源码编译时就出现了这个问题! |
|