Can i disable RTTI?
-
Hello guys? Do you know how to disable RTTI?
-
Hello guys? Do you know how to disable RTTI?
@ChrisPanda said in Can i disable RTTI?:
Do you know how to disable RTTI?
yes
darn can't leave it at a yes, why do you want to disable it? And I assume its essential for Qt's internal classes and methods in the first case.
-
Hi and welcome to devnet,
Do you mean add "-fno-rtti" to the compiler flags ?
-
I am using MSVC and i want to disable it to remove my classes name in compile time. I am happy that there is so many helpful members here
-
Are you using Qt Creator or Visual Studio directly ?
-
@SGaist I am using qt creator sir and i am developing qml quick application. is there any problem if i do that?
-
That depends on how you want to use these classes. Out of curiosity. Why do you want to disable RTTI for that application ?
-
Just for educational purpose. I just want to remove my classes name
-
Based on this page of the VS documentation, you would need to add "/GR-" to the compiler flags. But its goal is not to hide anything. It just does not generate some additional information.
-
I add it like this sir but not working :'(
-
still i can see some RTTI
config:
heres the output
-
You are removing the negation of the option.
-
Sorry sir but i dont understand, can you please explain it sir?
-
Sorry sir but i dont understand, can you please explain it sir?