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

Add support for plain-C precompiled headers for vcxproj generator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.13.0 Alpha 1
    • 4.5.0
    • Build tools: qmake
    • None
    • Win32, vcxproj generator
    • e04aaf188c735b775dc4483099ec61a9372b0fa8

      stable.h content:

      #include <stdio.h>
      

      main.c content:

      int main()
      {
        FILE* f = fopen("somefile","r");
        return 0;
      }
      

      main.pro content:

      TEMPLATE  = app
      CONFIG   += console precompile_header_c
      PRECOMPILED_HEADER  = stable.h
      HEADERS   = stable.h
      SOURCES   = main.c
      

      Run qmake.

      Load project in Visual Studio and build.

      Result: build errors.

      Expected: no build errors.

        1. 62821.zip
          2 kB
          Joerg Bornemann
        For Gerrit Dashboard: QTBUG-62821
        # Subject Branch Project Status CR V

            jbornema Joerg Bornemann
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes