Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22419

configuring with -no-rtti on Windows will cause a build failure

XMLWordPrintable

      configuring with -no-rtti on Windows will cause a build failure with the following error:

      qmlshadersplugin_plugin.cpp 
      shadereffect.cpp 
      c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : 
      error C2825: 'T': must be a class or namespace when followed by '::' 
      .\shadereffect.cpp(47) : see reference to function template instantiation 'T qt_dynamic_cast_check<ShaderEffectBuffer*,QPaintDe vice*>(X,T *)' being compiled 
      with 
      [ 
      T=ShaderEffectBuffer *, 
      X=QPaintDevice * 
      ] 
      c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : 
      error C2039: 'dynamic_cast_will_always_fail_because_rtti_is_dis abled' : is not a member of '`global namespace'' 
      c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : 
      error C2146: syntax error : missing ';' before identifier 
      'dynamic_cast_will_always_fail_because_rtti_is_dis abled' 
      
      c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : 
      error C2275: 'T' : illegal use of this type as an expression 
      .\shadereffect.cpp(47) : see declaration of 'T' 
      
      c:\programs\qt\4.7.4.static.debug\include\qtcore\. ./../src/corelib/global/qglobal.h(2372) : 
      error C2065: 'dynamic_cast_will_always_fail_because_rtti_is_dis abled' : undeclared identifier
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            andysh Andy Shaw
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes