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.
About the author
#2
06/04/2002 (1:40 pm)
well I tried that and I got this errorSunFlare.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
#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
Associate Ron Yacketta
This will add the new file to the project, once compiled it will/should place the obj file in the right place.
-Ron