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. fatal error C1010: unexpected end of file while looking for precompiled header directive

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

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
5 Posts 5 Posters 1 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
    act_x
    wrote on last edited by
    #1

    In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?

    D PJ ArendsP C 3 Replies Last reply
    0
    • A act_x

      In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      In the Project/Settings dialog box (Alt+F7), select the .C file in the list on the left. Then select the C++ tab, Precompiled Headers category. Select the Not using precompiled headers radio button. Otherwise, you'll need to add #include "stdafx.h" to the top of the .C file.

      1 Reply Last reply
      0
      • A act_x

        In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?

        PJ ArendsP Offline
        PJ ArendsP Offline
        PJ Arends
        wrote on last edited by
        #3

        http://www.codeproject.com/cpp/cppforumfaq.asp#cl_nopch[^]


        [

        ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

        Within you lies the power for good; Use it!

        1 Reply Last reply
        0
        • A act_x

          In my VC++ project i had to add a .c file that just had this data int cycleTableSize=3; int camData[] = {0,1,2,3,4,5,6}; I am getting the error fatal error C1010: unexpected end of file while looking for precompiled header directive What am i doing wrong ?

          C Offline
          C Offline
          Cambalindo
          wrote on last edited by
          #4

          Go to project Settings, Alt+F7, and in the right pane, select the file, then select the C++ tab and in the precompiled header category, select not using precompiled header. This should solve your problem. cheers Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org

          Q 1 Reply Last reply
          0
          • C Cambalindo

            Go to project Settings, Alt+F7, and in the right pane, select the file, then select the C++ tab and in the precompiled header category, select not using precompiled header. This should solve your problem. cheers Daniel Cespedes "There are 10 types of people, those who understand binary and those who do not" "Santa Cruz de la Sierra Paraiso Terrenal!" daniel.cespedes@ieee.org

            Q Offline
            Q Offline
            questaware
            wrote on last edited by
            #5

            Thanks

            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