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
[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
Associate Mark Frohnmayer
- Mark