Torque Visual studio 7.1 compatibility
by Sander Van Rossen · in Torque Game Engine · 04/14/2003 (2:23 am) · 6 replies
for those who are interested in making torque 7.1 compatible:
------------------------------
sim\netobject.h, line 51: typedef SimObject Parent;
console\simbase.h, line 137: typedef ConsoleObject Parent;
gui\guiControl.h, line 36: typedef SimGroup Parent;
these shouldn't be private, according to vc7.1 the typedefs cannot be used by its children... i made them protected instead...
------------------------------
lib\opengl2d3d\gllist.h, line 9:
#include
changed to:
#include
using namespace std;
(i don't know how portable that solution is tough,
can someone check that out?)
(tried stlport, didn't work with vc7.1)
------------------------------
tools\max2dtsExporter\NvTriStripObjects.cc, line 5:
#define set Vector
changed to:
//#define set Vector
(it causes compilation problems in header files above it;
god knows how)
------------------------------
I also noticed that in the vc7 and vc6 project files all the header files for 'core' are actually placed in 'console'?
Is there any good reason for this?
Seems like a mistake to me..
------------------------------
sim\netobject.h, line 51: typedef SimObject Parent;
console\simbase.h, line 137: typedef ConsoleObject Parent;
gui\guiControl.h, line 36: typedef SimGroup Parent;
these shouldn't be private, according to vc7.1 the typedefs cannot be used by its children... i made them protected instead...
------------------------------
lib\opengl2d3d\gllist.h, line 9:
#include
changed to:
#include
using namespace std;
(i don't know how portable that solution is tough,
can someone check that out?)
(tried stlport, didn't work with vc7.1)
------------------------------
tools\max2dtsExporter\NvTriStripObjects.cc, line 5:
#define set Vector
changed to:
//#define set Vector
(it causes compilation problems in header files above it;
god knows how)
------------------------------
I also noticed that in the vc7 and vc6 project files all the header files for 'core' are actually placed in 'console'?
Is there any good reason for this?
Seems like a mistake to me..
#2
check out:
engine\game\net\netTest.cc, line 43
this class doesn't have a parent typedef
which generates an error on line 71
or engine\editor\terraformer.h
class Terraformer
or
engine\game\guinomousectrl.cc
class GuiNoMouseCtrl
04/14/2003 (7:01 am)
well maybe they're not supposed to be used by the children.. but they are..check out:
engine\game\net\netTest.cc, line 43
this class doesn't have a parent typedef
which generates an error on line 71
or engine\editor\terraformer.h
class Terraformer
or
engine\game\guinomousectrl.cc
class GuiNoMouseCtrl
#3
04/14/2003 (7:45 am)
Than that's a bug, they should have their own Parent typedef.
#4
but here's the complete list of classes that miss a parent typedef.
to fix it, add these:
engine\game\banlist.h, line 17: typedef SimObject Parent;
engine\game\guinomousectrl.cc, line 11: typedef GuiControl Parent;
engine\editor\terraformer.h, line 63: typedef SimObject Parent;
engine\game\net\nettest.cc, line 45: typedef NetObject Parent;
I've post a bug report in the bugs forum
04/15/2003 (12:00 am)
Yesterday i didn't have time to write them all down in the post coz i had to run to catch a train hehe.but here's the complete list of classes that miss a parent typedef.
to fix it, add these:
engine\game\banlist.h, line 17: typedef SimObject Parent;
engine\game\guinomousectrl.cc, line 11: typedef GuiControl Parent;
engine\editor\terraformer.h, line 63: typedef SimObject Parent;
engine\game\net\nettest.cc, line 45: typedef NetObject Parent;
I've post a bug report in the bugs forum
#5
04/15/2003 (1:08 am)
Is it just me, or does VS.Net take like twice as long to compile Torque as VC 6 does? Hmmph.
#6
04/15/2003 (2:01 am)
I don't know, i've never compiled it with vc6..
Torque Owner J. Donavan Stanley