Game Development Community

adding new .h and .cc files to the hard code

by Anthony Rosenbaum · in General Discussion · 06/04/2002 (12:26 pm) · 5 replies

This is a very simple question. But I remeber that when you add new file to the code then build it you have to direct the .obj file somewhere. Can some one refresh my memory? What do I do when I want to add a new class, like turrets or something.

#1
06/04/2002 (12:49 pm)
hrmm.. I never ran into that one before, I select "Source Files" then click on Project->Add o Project->New, enter my file name in the "File name:" box and select either "C++ Source File" or "C/C++ Header File"

This will add the new file to the project, once compiled it will/should place the obj file in the right place.

-Ron
#2
06/04/2002 (1:40 pm)
well I tried that and I got this error
SunFlare.obj : error LNK2001: unresolved external symbol "public: __thiscall LensFlare::LensFlare(void)" (??0LensFlare@@QAE@XZ)
../Yo Joe/Yo Joe_DEBUG.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
see what I mean also I can't find "Source Files" I am using Visual Studio I was going thru Project-Add to project-files
#3
06/04/2002 (1:43 pm)
Private sdk forums please.

Jeff
#4
06/04/2002 (1:44 pm)
You set the obj output location in Project->Settings->General under Intermediate files and Output files. Make sure you have the correct Worksapce highlighted on the left.
#5
06/04/2002 (1:56 pm)
sorry jeff. . . .:-( still don't know my way around VS yet oh I learned that a "rebuild all" was my problem