Archived

This topic is now archived and is closed to further replies.

Compile Errors (Again .. Again, Big Hug)

This topic is 5798 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After reinstalling Visual Studio 6 again on my XP machine, I am constantly getting compile errors with the game tutorials such as the following example from Lesson 8 :- Compiling... DirectInput.cpp i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(410) : error C2146: syntax error : missing '';'' before identifier ''lpdi'' i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(410) : error C2501: ''LPDIRECTINPUT8'' : missing storage-class or type specifiers i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(410) : error C2501: ''lpdi'' : missing storage-class or type specifiers i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(411) : error C2146: syntax error : missing '';'' before identifier ''lpdiKeyboard'' i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(411) : error C2501: ''LPDIRECTINPUTDEVICE8'' : missing storage-class or type specifiers i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\shining3d.h(411) : error C2501: ''lpdiKeyboard'' : missing storage-class or type specifiers i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(35) : error C2065: ''DirectInput8Create'' : undeclared identifier i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(36) : error C2065: ''IID_IDirectInput8'' : undeclared identifier i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(36) : error C2065: ''lpdi'' : undeclared identifier i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(45) : error C2227: left of ''->CreateDevice'' must point to class/struct/union i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(45) : error C2065: ''lpdiKeyboard'' : undeclared identifier i:\languages\nehe''s game programming\lesson 8 3d movement_files\lesson07\directinput.cpp(55) : error C2227: left of ''->SetDataFormat'' must point to class/struct/union etc... etc.... I have tried to resolve this thru the Dinput8 library but that seems to be okay. All other libraries are also okay its just this d*&^%d direct input that fails all the way through the compile. I am a bit of a new-comer to C++ after growing up from Visual Basic, so any assistance would be very gratefully received.

Share this post


Link to post
Share on other sites
okay - perhaps I''m answering this to the 100 millionth time -

have you :

linked all libs properly
the newest version of DXSDK (*bah*) installed
all the header files included
not accidently set the active project settings to release and forgot there to link the DX shit ???

Share this post


Link to post
Share on other sites