Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15498

cstdint causes error in a precompiled header with clang

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.5.1
    • None
    • Mac OSX 10.11.2
       Xcode 7.2
      Command Line Tools for 10.11

      Apple LLVM version 7.0.2 (clang-700.1.81)
      Target: x86_64-apple-darwin15.2.0
      Thread model: posix

      Precompiled header file generation (with clang) fails when using a precompile header that includes stdint.

      1) Open the precompile.pro example project included in a install of qt creator (Qt/Examples/Qt-5.5/qmake/precompile)
      2) Add #include <cstdint> to the stable.h right above # include <iostream>
      3) Add c+11 to CONFIG in the precompile.pro file to enable c+11 support
      4) Build the project

      Expected results: the project builds correctly and generates the precompiled header file

      Actual results: the precompile header generation fails with the following error
      ../precompile/stable.h:46:10: fatal error: 'cstdint' file not found
      #include <cstdint>

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

            thiago Thiago Macieira
            blackcloak@gmail.com Alan Uthoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes