|
|
刚开始学用OPENGL,照样改个引擎,编译错误如下:
Compiling...
engine.cpp
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(13) : error C2629: unexpected 'class CKeyboard ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(13) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(30) : error C2629: unexpected 'class CMouse ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(30) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2146: syntax error : missing ';' before identifier 'm_pDI'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2501: 'LPDIRECTINPUT9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2501: 'm_pDI' : missing storage-class or type specifiers
InputSystem.cpp
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(13) : error C2629: unexpected 'class CKeyboard ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(13) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(23) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(23) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(23) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(30) : error C2629: unexpected 'class CMouse ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(30) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(40) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(40) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(40) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(69) : error C2146: syntax error : missing ';' before identifier 'm_pDI'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(69) : error C2501: 'LPDIRECTINPUT9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.h(69) : error C2501: 'm_pDI' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(4) : error C2065: 'LPDIRECTINPUT9' : undeclared identifier
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(4) : error C2146: syntax error : missing ')' before identifier 'pDI'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(4) : error C2350: 'CKeyboard::CKeyboard::CKeyboard' is not a static member
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(4) : error C2059: syntax error : ')'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(5) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(5) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(27) : error C2065: 'm_pDIDev' : undeclared identifier
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(29) : error C2227: left of '->Unacquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(30) : error C2227: left of '->Release' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(37) : error C2227: left of '->Acquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(43) : error C2227: left of '->Unacquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(48) : error C2227: left of '->GetDeviceState' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(50) : error C2227: left of '->Acquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(54) : error C2227: left of '->GetDeviceState' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(62) : error C2146: syntax error : missing ')' before identifier 'pDI'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(62) : error C2350: 'CMouse::CMouse::CMouse' is not a static member
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(62) : error C2059: syntax error : ')'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(63) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(63) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(94) : error C2227: left of '->GetDeviceState' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(96) : error C2227: left of '->Acquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(100) : error C2227: left of '->GetDeviceState' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(112) : error C2227: left of '->Unacquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(113) : error C2227: left of '->Release' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(119) : error C2227: left of '->Acquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(124) : error C2227: left of '->Unacquire' must point to class/struct/union
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(135) : error C2065: 'DirectInput8Create' : undeclared identifier
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(135) : error C2065: 'IID_IDirectInput9' : undeclared identifier
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(135) : error C2065: 'm_pDI' : undeclared identifier
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\InputSystem.cpp(164) : error C2227: left of '->Release' must point to class/struct/union
oglwindow.cpp
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(13) : error C2629: unexpected 'class CKeyboard ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(13) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(23) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(30) : error C2629: unexpected 'class CMouse ('
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(30) : error C2238: unexpected token(s) preceding ';'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2146: syntax error : missing ';' before identifier 'm_pDIDev'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2501: 'LPDIRECTINPUTDEVICE9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(40) : error C2501: 'm_pDIDev' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2146: syntax error : missing ';' before identifier 'm_pDI'
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2501: 'LPDIRECTINPUT9' : missing storage-class or type specifiers
C:\Documents and Settings\zzpp\桌面\SIMPENGINE\inputsystem.h(69) : error C2501: 'm_pDI' : missing storage-class or type specifiers
world.cpp
Error executing cl.exe.
|
|