Archived

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

Dr Chi

Can't compile Freakout in MSVC++

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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".

Share this post


Link to post
Share on other sites
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??

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
make sure you include the Direct Draw library (ddraw.lib)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites