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

String literal generated by moc hits compiler imposed limits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.5.0
    • 5.2.0
    • Build tools: moc
    • None

      The moc generates a single string literal that is stored into the 'stringdata' member of the 'qt_meta_stringdata_<namespace>_<class>_t' structure. If a class has a large number of enums constants, properties, then this string literal grows large enough that it hits the compiler limits.

      For instance, with Microsoft Visual C++ 9.0 compiler, the limit is 65535 for a single string literal.

        1. sample.h
          604 kB
        2. moc_sample.cpp
          926 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            nierob Nierob
            balpeck@yahoo.com Balaji Ramachandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes