Game Development Community

Unknown compiler warning

by Christian Kluckner · in Torque Game Engine · 08/15/2001 (5:05 pm) · 1 replies

I try to understand the following compiler warning, which only occurs in my own project that was built from the scratch (I finally got it working without linker errors - I tell you it was not that easy: everything is being included everywhere; not the easiest thing to figure out...) :

'dynamic cast' for polymorph type 'class NetConnection' used with /GR- ; unpredictable behaviour possible
(at least that's my translation of it ;-)

It is 'warning C4541' and I didn't even find it in the MSDN help!! :(


By the way: it doesn't make it easier using the engine libraries when files of the lib (like "interiorInstance.cc") include header files used in the test app (in this case "editor.h")
Makes it some difficult to set up your own project... :(

About the author

Recent Threads


#1
08/16/2001 (12:11 am)
You deactivated the generation of run time type information (RTTI), but used a dynamic_cast which depends on RTTI. Go to your project settings to the C/C++ tab and activate RTTI in the category programming language C++. You can do the same by removing the - from the option GR-.

Hope this helps
Alex