My goal is to just remove the executable classes name, but still continue with the ability to use dynamic_cast
. The problem is that if RTTI is removed, and thus the class names, there is no substitute for dynamic_cast
.
I have tried to build an alternative system to RTTI by storing the class information in a static variable, but I do not know how to convert the pointers correctly, especially when facing the "diamond problem". And, on top of that, it could give some problem in libs I use (SDL, GLFW, etc.).
The compiler I use is Min-GW, and not even -s
or strip
removes this type of data.
I'm desperate looking for some way to do this, even if it's directly replacing the class names in .exe generated by empty strings.