Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error message??!!!!!

Error message??!!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Richard Cheng
    wrote on last edited by
    #1

    i have two C files and want to add to my new project. I've used these files in MFC programming before and everything fines. However, this time when i compiled these files, i got the following error message: "fatal error C1010: unexpected end of file while looking for precompiled header directive" I didn't change anything.......then i tried to just compile the file (this lead me to create a new project).....i used the same directory...same location...nothing change.......and it works!!!!!!!!!! Does anyone know what happeneD? :confused:

    T 1 Reply Last reply
    0
    • R Richard Cheng

      i have two C files and want to add to my new project. I've used these files in MFC programming before and everything fines. However, this time when i compiled these files, i got the following error message: "fatal error C1010: unexpected end of file while looking for precompiled header directive" I didn't change anything.......then i tried to just compile the file (this lead me to create a new project).....i used the same directory...same location...nothing change.......and it works!!!!!!!!!! Does anyone know what happeneD? :confused:

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Your project is configured to use precompiled headers. Usually precompiled headers are included in the stdafx.h file. To solve your problem do one of the following: (a) put the line

      #include "stdafx.h"

      in your .c files (b) go to FileView in the workspace window. Right-click on your .c file and select "Settings". Go to C/C++ page and select "Precompiled headers" category. Click on "Not using precompiled headers" and OK. YOu have to repeat this for all .c files. Tomasz Sowinski -- http://www.shooltz.com.pl

      R 1 Reply Last reply
      0
      • T Tomasz Sowinski

        Your project is configured to use precompiled headers. Usually precompiled headers are included in the stdafx.h file. To solve your problem do one of the following: (a) put the line

        #include "stdafx.h"

        in your .c files (b) go to FileView in the workspace window. Right-click on your .c file and select "Settings". Go to C/C++ page and select "Precompiled headers" category. Click on "Not using precompiled headers" and OK. YOu have to repeat this for all .c files. Tomasz Sowinski -- http://www.shooltz.com.pl

        R Offline
        R Offline
        Richard Cheng
        wrote on last edited by
        #3

        Hi Tomasz, Thanks for your quick response!!! You are superb!!!!! ;) :) ;P :-D :rolleyes: :-O :cool: :suss: :eek: Richard

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups