I'm using OCC 6.2 installed on KUbuntu 7.10. When compiling some of my programs with gcc (4.1.3) I always get plenty of annoying compilation warnings of the form "warning: deprecated conversion from string constant to ‘char*’".
In header gp_Dir.lxx there are at least a tenth of those warnings, the first one is at line 18 :
It seems that all those warnings are caused by the way the exception mechanism is implemented. When defining the macro "No_Exception" then most of those warnings are hidden but some reside and persist ! Particularly a deprecation warning in TCollection_AsciiString.lxx at lign 112.
I tried to quickly tweak the source code but with no success. How could those warnings be removed ?