Game tutorial 07 errors
When trying to compile the '3d shooter' code from the NeHE site, Iget 61 different errors, can anyone tell me why I get these and how I can get rid of them, and is there a working version that I can d/l and view? I have not modified the code in any way and this is what I got the first time I tried to run it.
These are just a few of them from DirectInput.cpp
c:\my documents\c++\lesson07\shining3d.h(410) : error C2146: syntax error : missing ';' before identifier 'lpdi'
c:\my documents\c++\lesson07\shining3d.h(410) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
c:\my documents\c++\lesson07\shining3d.h(410) : error C2501: 'lpdi' : missing storage-class or type specifiers
c:\my documents\c++\lesson07\shining3d.h(411) : error C2146: syntax error : missing ';' before identifier 'lpdiKeyboard'
c:\my documents\c++\lesson07\shining3d.h(411) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
c:\my documents\c++\lesson07\shining3d.h(411) : error C2501: 'lpdiKeyboard' : missing storage-class or type specifiers
c:\my documents\c++\lesson07\directinput.cpp(35) : error C2065: 'DirectInput8Create' : undeclared identifier
c:\my documents\c++\lesson07\directinput.cpp(36) : error C2065: 'IID_IDirectInput8' : undeclared identifier
c:\my documents\c++\lesson07\directinput.cpp(36) : error C2065: 'lpdi' : undeclared identifier
c:\my documents\c++\lesson07\directinput.cpp(45) : error C2227: left of '->CreateDevice' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(45) : error C2065: 'lpdiKeyboard' : undeclared identifier
c:\my documents\c++\lesson07\directinput.cpp(55) : error C2227: left of '->SetDataFormat' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(66) : error C2227: left of '->SetCooperativeLevel' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(78) : error C2227: left of '->Acquire' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(103) : error C2227: left of '->Unacquire' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(106) : error C2227: left of '->Release' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(114) : error C2227: left of '->Release' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(137) : error C2227: left of '->GetDeviceState' must point to class/struct/union
c:\my documents\c++\lesson07\directinput.cpp(143) : error C2227: left of '->Acquire' must point to class/struct/union
[edited by - Canazza on May 20, 2003 1:05:36 PM]
[edited by - Canazza on May 20, 2003 1:08:29 PM]
You didn''t link the direct input 8 libraries.
Trent Polack
trent.codershq.com
trent@codershq.com
Author of Focus on 3D Terrain Programming
Trent Polack
trent.codershq.com
trent@codershq.com
Author of Focus on 3D Terrain Programming
Yeah, sorry, my bad, didn''t read it over well enough.
You don''t have VC++ set-up to recognize the DirectX SDK include directory. Do that, and you''ll be set.
You don''t have VC++ set-up to recognize the DirectX SDK include directory. Do that, and you''ll be set.
:D okay, I hate to sound like a total idiot but...
How do I do that?
(I''m new to C++, the most I''ve done is make a console based text adventure, prior to that It''s been VB, but now i''m looking to learn something new)
11th Hour Productions
How do I do that?
(I''m new to C++, the most I''ve done is make a console based text adventure, prior to that It''s been VB, but now i''m looking to learn something new)
11th Hour Productions
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement