Game Development Community

Quick question on .cc's and .h's

by Stephen Walsh · in Torque Game Engine · 12/08/2005 (4:31 am) · 4 replies

I downloaded a .cc and a .h (both writen in c++) form

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4402

and i have no idea how to intergate it into my project?

Thanks in advance
Stephen Walsh

#1
12/08/2005 (4:35 am)
What compiler you using? You have to add the files to your make build profile. So that when you recompile it will call the files into your build.
#2
12/08/2005 (4:37 am)
@Stephen

Depends on the platform you are using:

1) copy the file to the directory of choice within the engine dir
2) add it to the project
Linux:
creack open targets.torque.mk, find the directory name and add your new file to it
Windows:
Right click the directory in the solution explorer and select add existing; then browse for your file, select it and click OK
3) rebuild project

Might be missing a step or two, but that should get yah close

-Ron
#3
12/08/2005 (4:39 am)
Whicj one would you recommend , at the moment i'm only useing torsion for minor code changes , i use to use a program a long time agao for make build files, but cant remember the name of it anymore
#4
12/08/2005 (6:24 am)
Torsion is a script editor. You need to recompile your .EXE with those files addded to the source code build process. Google the site on how to compile the engine.