Vc++ 2005 working but still have questions
by Steve · in Technical Issues · 11/12/2007 (12:10 pm) · 4 replies
I followed the instructions in the TDN to re-compile Torque 1.5.2 under VC++ 2005. I did have a bit of trouble, but I got it to work after playing around a bit. I know it works because I rebuilt Torque Demo after fixing a bug patch, and the bug is no longer there. However, when I build Torque demo in debug mode and attempt to run it in Debug mode, i get the message "failed to open "main.cs" ". Can anyone help me with this please?
#2
unable to start program 'c:\torque\tge_1_5_2\example\torquedemo_DEBUG.exe'
c:\torque\tge_1_5_2\VS2005\example' is not a working directory
As I said before, I know that the release version finds the correct path and all becuase I have made changes which took effect in my game, so I'm a bit puzzled by the whole thing...perhaps I dont understand the purpose of the debug version?
11/12/2007 (2:13 pm)
I thoought i did that, but apparently I only did it for the release version. The tutorial says to set that directory as /example (that is my understanding at least). When I do that, I then get the error (in debug version only ) :unable to start program 'c:\torque\tge_1_5_2\example\torquedemo_DEBUG.exe'
c:\torque\tge_1_5_2\VS2005\example' is not a working directory
As I said before, I know that the release version finds the correct path and all becuase I have made changes which took effect in my game, so I'm a bit puzzled by the whole thing...perhaps I dont understand the purpose of the debug version?
#3
As for your error message, you're probably missing a \ off the end. I'd still use ${TargetDir} rather than hard-coding paths though.
11/13/2007 (4:55 am)
Set WorkingDirectory to $(TargetDir) which will be replaced by the full path to the example dir for you (well technically it's replaced with the full path to the dir the output exe is placed in, but in this case it's the same thing).As for your error message, you're probably missing a \ off the end. I'd still use ${TargetDir} rather than hard-coding paths though.
#4
11/17/2007 (10:57 am)
Thank you, it appears to work now. I don't understand how or why, but for the moment I have what i need. I will have to study the C++ visual studio environment more.
Torque Owner Badguy