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

Q_EXPORT_PLUGIN2 doesn't give a helpful error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.0.0 Beta 1
    • Core: Plugins
    • None
    • Ubuntu 10.04
      qtbase 290655c8a2401b84b9ddd223b67c06182886c597
      gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3

    Description

      Using Q_EXPORT_PLUGIN2 gives the error
      "error: invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>'"

      When it should be saying something like "error: Using old plugin system". qplugin.h appears to have the right code for this:

      #  define Q_EXPORT_PLUGIN2(PLUGIN, PLUGINCLASS)      \
          Q_STATIC_ASSERT_X(false, "Old plugin system used")
      

      but Q_STATIC_ASSERT_X doesn't seem to be working right for me.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes