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

moc does not include header file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.7.1
    • Build tools: moc
    • None
    • Windows 7, MSVC9, 32-bit

    Description

      if moc is called to generate the moc source for a file named c:/path.to/header (notice the dot in the path and no .h at the filename).
      In line 365 of src/tools/moc/main.cpp moc checks if the dot character is before the directory separator, but on a windows system there're two directory separators: backslash (the native windows one) and slash (used by qt). In the line only the native separator char is checked and not the qt one.
      If moc does not find a 'h' after the dot (in my example from above it would be 't') it does not include the header file in the generated moc file and the compilation of the moc source would fail.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            aroth Andreas Roth
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes