Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1004

moc ends with error -> ... stl_relops.:68: Parse error at "std"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 1.6.1
    • 1.6.0
    • General
    • None
    • Windows 8.1, mingw (from msys2), qtcreator 4.1 rc1, qbs 1.6.0.
    • f4b920daae0da57b0ef6df72738fdabbb8a88002

      Today I tried to using the new qtcreator 4.1.0 rc1. It comes with qbs 1.6.0. And it version of qbs can't build my project, with next error message from moc -> ... stl_relops.:68: Parse error at "std". Despite the fact that qbs 1.5.0 build this project fine. I looked at the command lines that generate these versions of qbs and their differences. And saw that 1.6.0 (compared to 1.5.0) adds to the command line for additional paths to include files. The path which leads to the problem (in my casre it -IZ:/mingw/msys64/mingw32/include/c++/6.1.0) would add the following code in moc.js (in function args(product, input, outputFileName))

      includePaths = includePaths.uniqueConcat(ModUtils.modulePropertiesFromArtifacts(product, [input], 'cpp', 'compilerIncludePaths'));

      If try remove this code that the project is build fine.

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

            jbornema Joerg Bornemann
            RedCat Michael Smirnoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes