How does torque do #includes?
by Matthew Shapiro · in Torque Game Engine · 12/21/2002 (10:54 am) · 1 replies
I mean if you look at the torque #includes they all use the engine dir as the root. let me explain:
For the master server I need to compile it using some of torque's headers and files (namely the bitStream stuff) so i copied all of the dirs in torque/engine to my main directory where my other code is. I #include "core/bitStream.h" and I get errors that it can't find platform/platform.h, core/stream.h, and math/mPoint.h. I think it's looking for these files in core/platform/platform.h etc.. which is why it isn't finding them. So how does torque use torque/engine as the #include root? (that makes sense right?)
--KallDrexx
For the master server I need to compile it using some of torque's headers and files (namely the bitStream stuff) so i copied all of the dirs in torque/engine to my main directory where my other code is. I #include "core/bitStream.h" and I get errors that it can't find platform/platform.h, core/stream.h, and math/mPoint.h. I think it's looking for these files in core/platform/platform.h etc.. which is why it isn't finding them. So how does torque use torque/engine as the #include root? (that makes sense right?)
--KallDrexx
Torque Owner Ryan J. Parker
cc -o myserver myserver.c -I/path/to/engine/directory