Game Development Community

Tnl_implement_rpc W/o Using Namespace Tnl

by Devrim Erdem · in Torque Game Engine · 05/29/2004 (10:08 am) · 1 replies

Hello,

[linux, stable TNL]

I get syntax error messages if I do not use the namespace TNL. I always avoid importing a complete namespace.

Error message is :

../CommLib/EventReflector.cpp:8: 'NetClassGroupGame' undeclared (first use this function)
../CommLib/EventReflector.cpp:8: (Each undeclared identifier is reported only once for each function it appears in.)
../CommLib/EventReflector.cpp: At global scope:
../CommLib/EventReflector.cpp:16: parse error before '{' token
../CommLib/EventReflector.cpp:16: 'U32' is used as a type, but is not defined as a type.
../CommLib/EventReflector.cpp:16: parse error before ')' token

There are more error messages and the code line is :

TNL_IMPLEMENT_RPC(EventReflector, rpcMessageSimHostToMonitor, (const char *messageString),
TNL::NetClassGroupGameMask, TNL::RPCGuaranteedOrdered, TNL::RPCDirClientToServer, 0 )

This is not critical but not very nice either.

Regards,

mderdem

#1
05/29/2004 (11:18 am)
I'm not sure where that NetClassGroupGame error on line 8 is coming from, but for the U32 error, it looks like I missed putting TNL:: in front in the macro. I've fixed this and it is now checked into the CVS HEAD.

- Mark