Game Development Community

Creating a VC project

by Ben Woodhead · in Torque Game Engine · 02/16/2004 (5:19 pm) · 2 replies

Hello Everybody,

I tried searching for this but I couldn't find anything so I figured I would post it.

I am curious how the vc 2003 project is setup. There is a torque library and a torque demo and they both have the same files included in it. Does anybody know why this is the case. I guess more specifically why doesn't the demo just have the files needed in it and not all the library files.

That leads me to my next question. I tried to build my own project with vc 2003 and just link to the libraries tonight and I ran into a lot of linking problems. I did manage to get all the libraries that torque needs from the torque demo but it still does not link. Is this actually possible or do I have to work in the torque project.

Normally I would not ask but I would like to keep torque project and source seperate from my project and just subclass everything that needs to change. This would help considerable for organization of my own project and compile time. :) The one thing that I am worried about is the fact that winmain is found in the torque library code. Also the fact that all the c++ section of the Torque Demo Settings is missing so I don't know what flags need to be set and stuff like that.

I guess the question, has anybody succedded in creating there own project before I go to far down this path.

Thanks, Ben

#1
02/16/2004 (5:58 pm)
Quote:
There is a torque library and a torque demo and they both have the same files included in it. Does anybody know why this is the case. I guess more specifically why doesn't the demo just have the files needed in it and not all the library files.

the .lib is used to to build various tools in the tools directory.

Quote:
That leads me to my next question. I tried to build my own project with vc 2003 and just link to the libraries tonight and I ran into a lot of linking problems. I did manage to get all the libraries that torque needs from the torque demo but it still does not link. Is this actually possible or do I have to work in the torque project.

Most of us just use the provided .dsw/.dsp or .sln/.vcproj files to build the demo exe, tools and other associated utilities.

Quote:
I guess the question, has anybody succedded in creating there own project before I go to far down this path.
I am not aware of anyone doing this, but it can be done. Just need to ensure you have the same compile options as the demo.dsw does.
#2
02/16/2004 (8:18 pm)
Ben,

I created the original project (was all makefiles but, after struggling with open source projects and their various builds/includes/makes for years, I had a dream of two clicks and you were running ;) so, yes, it *is* possible. Was it easy...no. There is a lot going on behind the scenes in the project that aren't obvious. VC .NET has helped clean this up quite a bit and GG and contributors have also fixed some of the dependencies so it is probably easier than when I first tackled it. If you stick with it, you will develop a much deeper understanding of how Visual Studio works works but really in the end it is much easier to just work from the pre-built solution.