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

Compilation error when using Imlib2 and Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.3
    • Build tools: Other
    • None

    Description

      The Imlib2 has to be installed to reproduce the problem. (on ubuntu libimlib2)

      The simple code does not compile and gives error (see make.log attachment)

      #include <Imlib2.h>
      #include <QtCore/QCoreApplication>
      
      int main(int argc, char *argv[])
      {
      }
      

      It compiles fine if the include lines are swapped like this:

      #include <QtCore/QCoreApplication>
      #include <Imlib2.h>
      
      int main(int argc, char *argv[])
      {
      }
      

      The test code is attached.

      Attachments

        1. Imlib2.h
          25 kB
        2. imlibtest.zip
          0.7 kB
        3. make.log
          7 kB

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              rzielonk Radek Zielonka (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes