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

QRhi static constants causing missing symbols

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.1, 6.7.0 FF
    • 6.6
    • Qt RHI
    • None
    • All
    • 113a6b89b (dev), f0410ed5e (6.6), f0a7b12c2 (6.6)

    Description

         auto &v = QRhiShaderResourceBinding::Data::MAX_TEX_SAMPLER_ARRAY_SIZE;
          qDebug() << v;
      

      causes

      main.cpp:8: error: undefined reference to `QRhiShaderResourceBinding::Data::MAX_TEX_SAMPLER_ARRAY_SIZE'
      

      For example, the Python bindings generator generates them as public const properties and runs into this. The suggestion would be to make them typed enums.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change