Unsolved Can i disable RTTI?
-
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?
-
@ChrisPanda
You have addedQMAKE_CXXFLAGS -= /GR-
Note that you have used
-=
. That removes the option. But @SGaist wants you to add that option:QMAKE_CXXFLAGS += /GR-
Note the
+=
!