Page 1 of 1

[SOLVED] LuaBind "No RTTI Data!" problem

Posted: Thu Dec 02, 2010 7:28 am
by iRobo
Hi, I've successfully implemented LUA scripting language in my project with LUABIND. It works fine with C++ standard types like int,... and my own classes.
but when I'm trying to access an irrlicht classes type like "ISceneNode" , LUABIND shows me this :

Code: Select all

std::exception: 'Access violation - no RTTI data!'
I've searched a lot. rebuilding LUABind , ODE , ... (third party projects in mine) with "Run-Time Type Info" enabled. until I figure out that the Irrlicht has built with "Run-Time Type Info (RTTI)" disabled! and I think that is the problem.

Do you guys have any idea that can help me? How can I rebuild irrlicht with RTTI Enabled?

Posted: Thu Dec 02, 2010 8:59 am
by hybrid
Well, simply enable it and recompile the engine. For gcc you have to remove -fno-rtti, for MSVC you have to enable it in the configuration dialog of the compiler.

Posted: Thu Dec 02, 2010 4:03 pm
by iRobo
well tried that but I got more than 100 errors like these in winnt.h and winbase.h :

Code: Select all

Error	1	error C2146: syntax error : missing ';' before identifier 'PVOID64'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	3	error C2146: syntax error : missing ';' before identifier 'Buffer'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	4	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	5	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	6	error C2146: syntax error : missing ';' before identifier 'PVOID64'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	7	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	236	Irrlicht
Error	8	error C2146: syntax error : missing ';' before identifier 'Buffer'	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	9	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
Error	10	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h	7818	Irrlicht
...

Posted: Thu Dec 02, 2010 4:21 pm
by iRobo