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

Add support for plain-C precompiled headers for vcxproj generator

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes