• Advertisement

Archived

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

PROBLEM!!!

This topic is 6245 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

I have a problem with andre lamothes book, twgpg i can''t even compile the first project...the first one is a game called freakout, i am trying to modify he code to make some changes to the game..I goto file new then, win32 application, empty project...Yeah I have a workspace, then I add all the files from the ch.1 folder then compile, I get four errors... I need to compile the 3 files so I can get going.. These four--------------------Configuration: One - Win32 Debug-------------------- Compiling... blackbox.cpp c:\mygp\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd'' c:\mygp\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found freakout.cpp c:\mygp\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd'' c:\mygp\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found Error executing cl.exe. One.exe - 4 error(s), 0 warning(s) Can some one please help me out, because I am loosing muy motivation already..Thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
sounds like you haven''t included the ddraw headers. I don''t have the book, so I don''t know the code

#include "ddraw.h"

maybe?

Share this post


Link to post
Share on other sites
Have you set up the include and library folders for the directX SDK in your compiler?

If you are using Visual C++ I can help you because I had the same errors when I first got the book, email me Zeke000000@aol.com if you havent got it sorted.

Just my thoughts take them as you will.

"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

Share this post


Link to post
Share on other sites
When I tried to compile it, I had to do the following: set the include and library paths to the directx sdk, then add the directx libraries to my project. After that, it worked fine.

Share this post


Link to post
Share on other sites

  • Advertisement