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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. blond question - fatal error C1010: unexpected end of file while looking for precompiled header directive

blond question - fatal error C1010: unexpected end of file while looking for precompiled header directive

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelphtmltutorial
7 Posts 3 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.
  • A Offline
    A Offline
    Abu Mami
    wrote on last edited by
    #1

    Whoa! Major blond moment! Just ignore the stupidity below. I found the problem. I just had to change the property for this file to ignore the precompiled header. ----- stupid question follows --------------------- I'm using Monty's HTML List Control (a real rockin' control) and I keep running into a problem with the DrawHTML.c file getting the error: fatal error C1010: unexpected end of file while looking for precompiled header directive Yesterday I was somehow able to convince the compiler to accept this file, but today I keep getting this error. There must be some sort of compiler parm that's needed, but I couldn't see anything that jumped out at me by inspecting Monty's example program. What is going on? Can anyone shed some light on this? Thanks. -- modified at 1:40 Tuesday 28th March, 2006

    N V 2 Replies Last reply
    0
    • A Abu Mami

      Whoa! Major blond moment! Just ignore the stupidity below. I found the problem. I just had to change the property for this file to ignore the precompiled header. ----- stupid question follows --------------------- I'm using Monty's HTML List Control (a real rockin' control) and I keep running into a problem with the DrawHTML.c file getting the error: fatal error C1010: unexpected end of file while looking for precompiled header directive Yesterday I was somehow able to convince the compiler to accept this file, but today I keep getting this error. There must be some sort of compiler parm that's needed, but I couldn't see anything that jumped out at me by inspecting Monty's example program. What is going on? Can anyone shed some light on this? Thanks. -- modified at 1:40 Tuesday 28th March, 2006

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Abu Mami wrote:

      fatal error C1010: unexpected end of file while looking for precompiled header directive

      It is missing the stdafx.h header file. Including this could solve your problem.


      Nibu thomas Software Developer

      A 1 Reply Last reply
      0
      • N Nibu babu thomas

        Abu Mami wrote:

        fatal error C1010: unexpected end of file while looking for precompiled header directive

        It is missing the stdafx.h header file. Including this could solve your problem.


        Nibu thomas Software Developer

        A Offline
        A Offline
        Abu Mami
        wrote on last edited by
        #3

        Hi Nibu, thanks for responding. However, I had already tried your suggestion and that didn't work. Since, or course, the file is a C file and not a CPP file. Read my original post again. I found the answer and modified my original post. Thanks

        N 1 Reply Last reply
        0
        • A Abu Mami

          Hi Nibu, thanks for responding. However, I had already tried your suggestion and that didn't work. Since, or course, the file is a C file and not a CPP file. Read my original post again. I found the answer and modified my original post. Thanks

          N Offline
          N Offline
          Nibu babu thomas
          wrote on last edited by
          #4

          Abu Mami wrote:

          Since, of course, the file is a C file and not a CPP file.

          Why do you think it won't work with a C file.


          Nibu thomas Software Developer

          A 1 Reply Last reply
          0
          • A Abu Mami

            Whoa! Major blond moment! Just ignore the stupidity below. I found the problem. I just had to change the property for this file to ignore the precompiled header. ----- stupid question follows --------------------- I'm using Monty's HTML List Control (a real rockin' control) and I keep running into a problem with the DrawHTML.c file getting the error: fatal error C1010: unexpected end of file while looking for precompiled header directive Yesterday I was somehow able to convince the compiler to accept this file, but today I keep getting this error. There must be some sort of compiler parm that's needed, but I couldn't see anything that jumped out at me by inspecting Monty's example program. What is going on? Can anyone shed some light on this? Thanks. -- modified at 1:40 Tuesday 28th March, 2006

            V Offline
            V Offline
            Vinaya
            wrote on last edited by
            #5

            You can give the option 'Not Using Precompiled Headers' for the file and then try to build it. Vini

            A 1 Reply Last reply
            0
            • N Nibu babu thomas

              Abu Mami wrote:

              Since, of course, the file is a C file and not a CPP file.

              Why do you think it won't work with a C file.


              Nibu thomas Software Developer

              A Offline
              A Offline
              Abu Mami
              wrote on last edited by
              #6

              Nibu thomas wrote:

              Why do you think it won't work with a C file.

              Because when I tried it, the compiler complained that I couldn't use the precompiled header with a C file. Call me naive :)

              1 Reply Last reply
              0
              • V Vinaya

                You can give the option 'Not Using Precompiled Headers' for the file and then try to build it. Vini

                A Offline
                A Offline
                Abu Mami
                wrote on last edited by
                #7

                Thanks Vini - That in fact is what I discovered and it works just fine. Just took me a little while till I stumbled across this option.

                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