Tricks of the....
I just started with Tricks of the Windows Game Programming Gurus. I use VB6 at work and I am still trying to get use to the VC compiler. I am probably doing something painfully stupid and I am in the process of RTFM-ing but if anybody has seen these compile errors, shown below, from the first source code on the CD or can point me to a link explaining what I am doing wrong I would appreciate it. I tried searching this site a bit but did not see anything covering this. It does not seem to be the straight forward error described, like they ever are, and none of the MSDN listings seem to me to be the cause. I am very sorry if this has been covered to death already or is just painfully stupid but again would really love it if somebody can point me in the right direction.
Compiling...
blackbox.cpp
e:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
e:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
freakout.cpp
e:\source\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
e:\source\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
freak1.exe - 4 error(s), 0 warning(s)
You''re not including the proper headers. Look in the back of your book for instructions.
You might also have to go to the Project tab
Click Settings...
Click the C/C++ Tab...
For Category, select ''preprocessor'' in the drop down list box control.
type in the full path to the headers you need.
also, Check above ''lpdd'' in the header indicated - a line above that one probably is missing a semi-colon.
Hope this helps. Let us know.
Click Settings...
Click the C/C++ Tab...
For Category, select ''preprocessor'' in the drop down list box control.
type in the full path to the headers you need.
also, Check above ''lpdd'' in the header indicated - a line above that one probably is missing a semi-colon.
Hope this helps. Let us know.
- Advice, eh? Well, besides working on your swing...you know, besides that...I'd have to think.
When double checking everything from scratch. I find that I most probably had manually added the version 8.1 directx libraries to the project rather than the 6.x versions I had installed from the book.
I started over from scratch and that seemed to be the thing that I did differently.
Now compiling fine and having a good time modifying the code. Thanks to folks here and elsewhere that helped so much.
I started over from scratch and that seemed to be the thing that I did differently.
Now compiling fine and having a good time modifying the code. Thanks to folks here and elsewhere that helped so much.
That shouldn''t matter if you did install 8.1 because of the infamous DX component COM.
Wachar''s Eternity <-<-<-<-<- Me own site!
Wachar''s Eternity <-<-<-<-<- Me own site!
Wachar's Eternity <-<-<-<-<- Me own site!
Someone really needs to write an article on the basic html tags and about the faq.
Wachar''s Eternity <-<-<-<-<- Me own site!
Wachar''s Eternity <-<-<-<-<- Me own site!
Wachar's Eternity <-<-<-<-<- Me own site!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement