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. help!!!!!i have got an error.....

help!!!!!i have got an error.....

Scheduled Pinned Locked Moved C / C++ / MFC
help
19 Posts 6 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.
  • N namaskaaram

    i get an error like this shown below......

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

    i dont seem to find the error.....:confused: help.... :doh:

    S Offline
    S Offline
    Sujan Christo
    wrote on last edited by
    #3

    Hi, Seems that you have deleted some of the needed headers/endif statement.Have a look @ the msdn with the error code C1010 Sujan

    V N 2 Replies Last reply
    0
    • N namaskaaram

      i get an error like this shown below......

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

      i dont seem to find the error.....:confused: help.... :doh:

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #4

      or turn off precompiled header files in the project settings.


      -prakash

      N 1 Reply Last reply
      0
      • N namaskaaram

        i get an error like this shown below......

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

        i dont seem to find the error.....:confused: help.... :doh:

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #5

        See the FAQ #2.5[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb

        N 1 Reply Last reply
        0
        • S Sujan Christo

          Hi, Seems that you have deleted some of the needed headers/endif statement.Have a look @ the msdn with the error code C1010 Sujan

          V Offline
          V Offline
          vishalmore
          wrote on last edited by
          #6

          Hi, It seems that, this error is beacause of precompiled header file, you can do one thing change the project settings from setting tab->c++ tab->Category->Precompiled headers->Check not using precompiled headers. Now build project, it should work ! Best Regards, Vishal

          1 Reply Last reply
          0
          • N namaskaaram

            i get an error like this shown below......

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

            i dont seem to find the error.....:confused: help.... :doh:

            V Offline
            V Offline
            vishalmore
            wrote on last edited by
            #7

            Hi, It seems that, this error is beacause of precompiled header file, you can do one thing change the project settings from setting tab->c++ tab->Category->Precompiled headers->Check not using precompiled headers. Now build project, it should work ! Best Regards, Vishal

            N 1 Reply Last reply
            0
            • V vishalmore

              Hi, It seems that, this error is beacause of precompiled header file, you can do one thing change the project settings from setting tab->c++ tab->Category->Precompiled headers->Check not using precompiled headers. Now build project, it should work ! Best Regards, Vishal

              N Offline
              N Offline
              namaskaaram
              wrote on last edited by
              #8

              aaaaaah.....but that doesnt work....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) by the way the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

              1 Reply Last reply
              0
              • M Michael Dunn

                See the FAQ #2.5[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb

                N Offline
                N Offline
                namaskaaram
                wrote on last edited by
                #9

                aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

                1 Reply Last reply
                0
                • P Prakash Nadar

                  or turn off precompiled header files in the project settings.


                  -prakash

                  N Offline
                  N Offline
                  namaskaaram
                  wrote on last edited by
                  #10

                  aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

                  1 Reply Last reply
                  0
                  • S Sujan Christo

                    Hi, Seems that you have deleted some of the needed headers/endif statement.Have a look @ the msdn with the error code C1010 Sujan

                    N Offline
                    N Offline
                    namaskaaram
                    wrote on last edited by
                    #11

                    aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

                    1 Reply Last reply
                    0
                    • I IsaacLitingjun

                      Maybe you can try add: #include "stdafx.h" at head of your file if there didn't have one. i met that problem before,but i don't know whether it's the same as yours? Best wishes, :) --------------------------- You will when you believe! ------------------------

                      N Offline
                      N Offline
                      namaskaaram
                      wrote on last edited by
                      #12

                      aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

                      P 1 Reply Last reply
                      0
                      • N namaskaaram

                        aaaaaah.....but that doesnt work(precomplied header stuff)....i had tried that out when i searched MSDN.....I get more errors (from 3 errors to 47 errorz!!!!!) the #include is already there in the hearder files that i have loaded.....removing that and adding in the correspondin cpp file also doesnt help.....leadz to more..... sob.....any other ideas..... thanx a lot all u guyz for ur answerz.....and expecting u could clear it up for me.....

                        P Offline
                        P Offline
                        Prakash Nadar
                        wrote on last edited by
                        #13

                        You have one reply for every one ?!?!?


                        -prakash

                        N 1 Reply Last reply
                        0
                        • N namaskaaram

                          i get an error like this shown below......

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

                          i dont seem to find the error.....:confused: help.... :doh:

                          I Offline
                          I Offline
                          IsaacLitingjun
                          wrote on last edited by
                          #14

                          i find this fatal error C1010: unexpected end of file while looking for precompiled header directive For solve this common problem You need to use automatic use of precompliled headers. Select project/settings (or ALT+F7) then, in the Project Settings Dialog, select the C/C++ tab, then select the Precompiled Headers item in the combo box, and select the Automatic use of precompliled headers option. here: http://www.codeproject.com/database/caaadoclass1.asp[^] hope it can help ------------------------- Best Wishes sehsiW tseB ------------------------- You will when you believe! -------------------------

                          N 1 Reply Last reply
                          0
                          • P Prakash Nadar

                            You have one reply for every one ?!?!?


                            -prakash

                            N Offline
                            N Offline
                            namaskaaram
                            wrote on last edited by
                            #15

                            yes.....everyone has given the same solution!!!!!:confused:

                            P 1 Reply Last reply
                            0
                            • I IsaacLitingjun

                              i find this fatal error C1010: unexpected end of file while looking for precompiled header directive For solve this common problem You need to use automatic use of precompliled headers. Select project/settings (or ALT+F7) then, in the Project Settings Dialog, select the C/C++ tab, then select the Precompiled Headers item in the combo box, and select the Automatic use of precompliled headers option. here: http://www.codeproject.com/database/caaadoclass1.asp[^] hope it can help ------------------------- Best Wishes sehsiW tseB ------------------------- You will when you believe! -------------------------

                              N Offline
                              N Offline
                              namaskaaram
                              wrote on last edited by
                              #16

                              well.....the link that u gave me has to do with databases!!!!! i guess u have put up the wrong link!!!!! i selected the "Automatic use of precomplied headers" option,but what do i put in the through header box?? thankz for ur reply..... :-D

                              1 Reply Last reply
                              0
                              • N namaskaaram

                                yes.....everyone has given the same solution!!!!!:confused:

                                P Offline
                                P Offline
                                Prakash Nadar
                                wrote on last edited by
                                #17

                                I think if you provide more info then someone could give a different solution to ur problem .


                                -prakash

                                N 1 Reply Last reply
                                0
                                • P Prakash Nadar

                                  I think if you provide more info then someone could give a different solution to ur problem .


                                  -prakash

                                  N Offline
                                  N Offline
                                  namaskaaram
                                  wrote on last edited by
                                  #18

                                  thank you MR prkash for ur time and help.....I found my mistake...... i got a linker errorz(the 20 errorz),but when i linked the lib (which i hadnt )these were gone!!!!! :-D thank u very much for ur time and help..... Happy programmin..... cheerz..... :-D

                                  P 1 Reply Last reply
                                  0
                                  • N namaskaaram

                                    thank you MR prkash for ur time and help.....I found my mistake...... i got a linker errorz(the 20 errorz),but when i linked the lib (which i hadnt )these were gone!!!!! :-D thank u very much for ur time and help..... Happy programmin..... cheerz..... :-D

                                    P Offline
                                    P Offline
                                    Prakash Nadar
                                    wrote on last edited by
                                    #19

                                    wow! so actually turning off the precompiled header i.e. the solution most of them were giving you were actually working but you started getting different error coz you did not link the required lib which turned out to be more no of errors then before, so you thought that these solutions were wrong! Cool man.


                                    -prakash

                                    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