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

Q_INIT_RESOURCE does not work from namespace

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes