Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-699

Build error: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

    XMLWordPrintable

Details

    • Windows
    • 160f26046877b90a632e37a885f71700c20c9951

    Description

      Create a new Qt GUI Application, enable Precompiled Headers, build:

      1>------ Build started: Project: QtGuiApplication1, Configuration: Debug Win32 ------
      1>uic QtGuiApplication1.ui
      1>rcc QtGuiApplication1.qrc
      1>moc QtGuiApplication1.h
      1> RCC: Warning: No resources in 'C:\Users\michael.denk\Desktop\QtVsAddinTest5\QtGuiApplication1\QtGuiApplication1.qrc'.
      1>stdafx.cpp
      1>main.cpp
      1>QtGuiApplication1.cpp
      1>qrc_QtGuiApplication1.cpp
      1>moc_QtGuiApplication1.cpp
      1>c:\users\michael.denk\desktop\qtvsaddintest5\qtguiapplication1\debug\rcc\qrc_qtguiapplication1.cpp(17): warning C4005: 'QT_RCC_PREPEND_NAMESPACE': macro redefinition
      1>c:\users\michael.denk\desktop\qtvsaddintest5\qtguiapplication1\debug\rcc\qrc_qtguiapplication1.cpp(10): note: see previous definition of 'QT_RCC_PREPEND_NAMESPACE'
      1>c:\users\michael.denk\desktop\qtvsaddintest5\qtguiapplication1\debug\rcc\qrc_qtguiapplication1.cpp(18): warning C4005: 'QT_RCC_MANGLE_NAMESPACE': macro redefinition
      1>c:\users\michael.denk\desktop\qtvsaddintest5\qtguiapplication1\debug\rcc\qrc_qtguiapplication1.cpp(15): note: see previous definition of 'QT_RCC_MANGLE_NAMESPACE'
      1>c:\users\michael.denk\desktop\qtvsaddintest5\qtguiapplication1\debug\rcc\qrc_qtguiapplication1.cpp(47): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
      1>Done building project "QtGuiApplication1.vcxproj" -- FAILED.
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
      
      

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            m.denk Michael Denk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes