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

Q_INIT_RESOURCE does not work from namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.3.1
    • Core: Resource System
    • None

      Q_INIT_RESOURCE causes undefined symbols when calling it from a namespace:

      namespace foo {
      void initResources()
      {
        Q_INIT_RESOURCE(myResource);
      }
      
      }
      

      this code causes unresolved symbols to foo::qInitResources_myResource, since the generated symbol is qInitResources_myResource.

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

            hjk hjk
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes