Advertisement

Can't compile Freakout in MSVC++

Started by January 30, 2002 09:57 PM
5 comments, last by Dr Chi 22 years, 10 months ago
this is another question relating to LaMothe''s book TOTWGPG. in Chapter One, he asks you to change some code around to get a diff paddle size, colours etc. I can do that but... I can''t recompile the project so that I can see the changes I made come into effect. I copied the chapter file from the CD, removed the read only property from the files, opened freakout.dsw file, made some minor changes in freakout.cpp, tried to build a new .exe but it didn''t work what is the correct way to do it?
if you got some unresolved external errors, try adding the word ''extern'' before each dx object in blackbod.cpp.
If that''s not it, make sure you include the libs "winmm.lib" ,"ddraw.lib" & "dxguib.lib".
Advertisement
here is the error

--------------------Configuration: freakout - Win32 Debug--------------------
Compiling...
blackbox.cpp
c:\my documents\my work\programming\lamothe\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
c:\my documents\my work\programming\lamothe\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
freakout.cpp
c:\my documents\my work\programming\lamothe\t3dchap01\blackbox.h(34) : error C2146: syntax error : missing '';'' before identifier ''lpdd''
c:\my documents\my work\programming\lamothe\t3dchap01\blackbox.h(34) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

freakout.exe - 4 error(s), 0 warning(s)



this makes no sense to me because I never deleted any ;

can anyone give me instructions from the start on how to modify the freakout.cpp code and then rebuild freakout.exe??
make sure you include the Direct Draw library (ddraw.lib)
I included ddraw.lib and all the other directX libs but I got the same message.

any other ideas?
Well, as the first error says, there might be a missing ; somewhere.
Also, do you have to include an libraries in Projects>Settings?

-------------------------
(Gorgeous graphics)+(beautiful sound effects)+(symphonic music)+(no gameplay) != Good game
-------------------------GBGames' Blog: An Indie Game Developer's Somewhat Interesting ThoughtsStaff Reviewer for Game Tunnel
Advertisement
hmm, I just compiled it and it worked fine. I have no idea why yours isn't working... unless you accidently deleted a '}', or forgot a '}' when you modded it, becuase that would explain the EOF errors!

Will O'Connor, Flamma Productions.

Edited by - Will - Flamma Prod on January 31, 2002 8:39:18 PM
[email=webwill666@hotmail.com]Will O'Connor[/email], Flamma Productions.

This topic is closed to new replies.

Advertisement