Game Development Community

aiclient in latest head compile errors ?

by Billy L · in Torque Game Engine · 10/09/2002 (6:02 am) · 3 replies

Hi all

I tried to compile the new aiclient in the latest head
but i get many errors !?
Is there something missing in the code or is it under
development ?

Greetings

Billy

#1
10/09/2002 (6:30 am)
We do not have the ability to read minds ;)
Please post the errors you are seeing.
#2
10/09/2002 (7:44 am)
hehe sorry !

Here it is !

C:\torque\engine\game\aiClient.cc(15) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2270: 'getClassRep' : modifiers not allowed on nonmember functions
C:\torque\engine\game\aiClient.cc(15) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2065: 'dynClassRep' : undeclared identifier
C:\torque\engine\game\aiClient.cc(15) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2653: 'Parent' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2065: 'AIClient' : undeclared identifier
C:\torque\engine\game\aiClient.cc(15) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(15) : error C2955: 'ConcreteClassRep' : use of class template requires template argument list
../engine\console/consoleObject.h(211) : see declaration of 'ConcreteClassRep'
C:\torque\engine\game\aiClient.cc(15) : error C2514: 'ConcreteClassRep' : class has no constructors
../engine\console/consoleObject.h(211) : see declaration of 'ConcreteClassRep'
C:\torque\engine\game\aiClient.cc(15) : error C2262: 'dynClassRep' : cannot be destroyed
C:\torque\engine\game\aiClient.cc(20) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(20) : error C2373: 'AIClient' : redefinition; different type modifiers
C:\torque\engine\game\aiClient.cc(21) : error C2065: 'mMoveMode' : undeclared identifier
C:\torque\engine\game\aiClient.cc(21) : error C2065: 'ModeStop' : undeclared identifier
C:\torque\engine\game\aiClient.cc(22) : error C2065: 'mMoveDestination' : undeclared identifier
C:\torque\engine\game\aiClient.cc(22) : error C2228: left of '.set' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(23) : error C2065: 'mAimLocation' : undeclared identifier
C:\torque\engine\game\aiClient.cc(23) : error C2228: left of '.set' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(24) : error C2065: 'mMoveSpeed' : undeclared identifier
C:\torque\engine\game\aiClient.cc(25) : error C2065: 'mMoveTolerance' : undeclared identifier
C:\torque\engine\game\aiClient.cc(29) : error C2065: 'mTriggers' : undeclared identifier
C:\torque\engine\game\aiClient.cc(29) : error C2109: subscript requires array or pointer type
C:\torque\engine\game\aiClient.cc(29) : error C2106: '=' : left operand must be l-value
C:\torque\engine\game\aiClient.cc(31) : error C2065: 'mAimToDestination' : undeclared identifier
C:\torque\engine\game\aiClient.cc(32) : error C2065: 'mTargetInLOS' : undeclared identifier
C:\torque\engine\game\aiClient.cc(34) : error C2065: 'mLocation' : undeclared identifier
C:\torque\engine\game\aiClient.cc(34) : error C2228: left of '.set' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(35) : error C2065: 'mPlayer' : undeclared identifier
C:\torque\engine\game\aiClient.cc(36) : warning C4508: 'AIClient' : function should return a value; 'void' return type assumed
C:\torque\engine\game\aiClient.cc(41) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(41) : error C2373: 'AIClient' : redefinition; different type modifiers
C:\torque\engine\game\aiClient.cc(43) : warning C4508: 'AIClient' : function should return a value; 'void' return type assumed
C:\torque\engine\game\aiClient.cc(50) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(51) : error C2065: 'mTargetObject' : undeclared identifier
C:\torque\engine\game\aiClient.cc(51) : error C2227: left of '->getId' must point to class/struct/union
C:\torque\engine\game\aiClient.cc(54) : error C2440: '=' : cannot convert from 'class ShapeBase *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\torque\engine\game\aiClient.cc(62) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(62) : error C2270: 'getTargetObject' : modifiers not allowed on nonmember functions
C:\torque\engine\game\aiClient.cc(64) : error C2227: left of '->getId' must point to class/struct/union
C:\torque\engine\game\aiClient.cc(74) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(86) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(87) : error C2065: 'ModeCount' : undeclared identifier
C:\torque\engine\game\aiClient.cc(92) : error C2065: 'ModeStuck' : undeclared identifier
C:\torque\engine\game\aiClient.cc(92) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(93) : error C2065: 'throwCallback' : undeclared identifier
C:\torque\engine\game\aiClient.cc(95) : error C2065: 'ModeMove' : undeclared identifier
C:\torque\engine\game\aiClient.cc(95) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(101) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(116) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(125) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(128) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const class Point3F' (or there is no acceptable conversion)
C:\torque\engine\game\aiClient.cc(129) : error C2228: left of '.z' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(132) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const class Point3F' (or there is no acceptable conversion)
C:\torque\engine\game\aiClient.cc(140) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(141) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const class Point3F' (or there is no acceptable conversion)
C:\torque\engine\game\aiClient.cc(149) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(150) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class Point3F' (or there is no acceptable conversion)
C:\torque\engine\game\aiClient.cc(162) : error C2653: 'AIClient' : is not a class or namespace name
C:\torque\engine\game\aiClient.cc(164) : error C2065: 'mMove' : undeclared identifier
C:\torque\engine\game\aiClient.cc(164) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const struct Move' (or there is no acceptable conversion)
C:\torque\engine\game\aiClient.cc(165) : error C2440: '=' : cannot convert from 'int *' to 'struct Move *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\torque\engine\game\aiClient.cc(170) : error C2065: 'getControlObject' : undeclared identifier
C:\torque\engine\game\aiClient.cc(170) : error C2440: 'static_cast' : cannot convert from 'int' to 'class Player *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\torque\engine\game\aiClient.cc(193) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(197) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(199) : error C2051: case expression not constant
C:\torque\engine\game\aiClient.cc(202) : error C2227: left of '->getTransform' must point to class/struct/union
C:\torque\engine\game\aiClient.cc(206) : error C2227: left of '->getRotation' must point to class/struct/union
C:\torque\engine\game\aiClient.cc(207) : error C2227: left of '->getHeadRotation' must point to class/struct/union
C:\torque\engine\game\aiClient.cc(210) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(210) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(211) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(211) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(239) : error C2228: left of '.yaw' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(248) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(248) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(248) : error C2228: left of '.len' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(252) : error C2228: left of '.z' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(257) : error C2228: left of '.pitch' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(261) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(261) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(262) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(262) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(270) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(270) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(270) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(272) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(272) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(272) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(275) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(275) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(275) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(276) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(276) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(276) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(280) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(280) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(280) : error C2228: left of '.x' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(281) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(281) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(281) : error C2228: left of '.y' must have class/struct/union type
C:\torque\engine\game\aiClient.cc(281) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

aiClient.obj - 102 error(s), 2 warning(s)

maybe i forgot something but i included the
aiclient.h
aiclient.cc
and made a clean build
if i need to add moore files please tell me !

billy
#3
10/16/2002 (4:27 am)
yea .. in dev I would think ..
never tested perhaps ..
try including the header :)

#include "game/aiClient.h"
add that to aiClient.cc
and it will work.