Custom .h and .cpp files
by Austin Reynolds · in Technical Issues · 08/27/2008 (9:21 am) · 4 replies
This is almost embarrassing that I have to ask this. But to be honest Ive never ran into this problem and just cannot figure it out.
I have custom .cpp and .h files trying to include them into gameConnection.h and .cpp but keeps telling me it cannot find the file. So I figured hey it just must be the include directories re-set them up just to be sure(everything compiled just fine before) and that didnt fix the issue so I went to dig in, the problem im having is when I add a .h or .cpp file its adding to gameexamples/game/buildfiles/visualstudios/project so here is where im getting confused. All the projects ive ever worked on i just add .h and .cpp files at will and it works just fine. Where are all the build files actually being loaded from? torque/engine/source ? I see all the files in there but if I throw my custom .h and .cpp files in there it still acts like its confused so I obviously and not seeing something.
I must be doing something noobish wrong so simple answer will do haha :)
Ive created a work around right now but id rather know whats going on then do it this way forever. I create the file then remove it from the project, then go in and click add existing item then it works fine for whatever reason.
I have custom .cpp and .h files trying to include them into gameConnection.h and .cpp but keeps telling me it cannot find the file. So I figured hey it just must be the include directories re-set them up just to be sure(everything compiled just fine before) and that didnt fix the issue so I went to dig in, the problem im having is when I add a .h or .cpp file its adding to gameexamples/game/buildfiles/visualstudios/project so here is where im getting confused. All the projects ive ever worked on i just add .h and .cpp files at will and it works just fine. Where are all the build files actually being loaded from? torque/engine/source ? I see all the files in there but if I throw my custom .h and .cpp files in there it still acts like its confused so I obviously and not seeing something.
I must be doing something noobish wrong so simple answer will do haha :)
Ive created a work around right now but id rather know whats going on then do it this way forever. I create the file then remove it from the project, then go in and click add existing item then it works fine for whatever reason.
About the author
#2
09/02/2008 (4:22 am)
Where are working TGE or TGEA? and ver?
#3
09/02/2008 (7:11 am)
TGEA 1.7.1 TGE works like you would think for me. Really just a weird problem I don't mind working with this work around I created just thought it was weird it is not working like a normal project for me.
#4
09/02/2008 (8:03 am)
Check the dir if the new files are there. If you created them in the ide, then the new files are not neccessarily created at the location where the filter would suggest. If that's fine, try removing and adding the new files to the project.
Associate James Ford
Sickhead Games