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 !!!

Fatal Error C1010 !!!

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++comhelpquestion
6 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.
  • J Offline
    J Offline
    JoeSox
    wrote on last edited by
    #1

    :doh::mad: I need some new eyes on this one, it's driving me mad:rolleyes: I am trying to use Bob Mottram's classes. Everything compiles from the download http://prdownloads.sourceforge.net/rodney/facedetect.zip?download[^] But when I imported the files into my project I receive Fatal Error C1010 unexpected end of file while looking for precompiled header directive classimage.cpp C:\Backup2\carl2\classimage.cpp(573) : fatal error C1010: unexpected end of file while looking for precompiled header directive I have OpenCV hooked up correctly and imported all the files neccesary, I believe any ideas? Thanks Later,
    JoeSox
    www.joeswammi.com
    www.humanaiproject.org

    M P 2 Replies Last reply
    0
    • J JoeSox

      :doh::mad: I need some new eyes on this one, it's driving me mad:rolleyes: I am trying to use Bob Mottram's classes. Everything compiles from the download http://prdownloads.sourceforge.net/rodney/facedetect.zip?download[^] But when I imported the files into my project I receive Fatal Error C1010 unexpected end of file while looking for precompiled header directive classimage.cpp C:\Backup2\carl2\classimage.cpp(573) : fatal error C1010: unexpected end of file while looking for precompiled header directive I have OpenCV hooked up correctly and imported all the files neccesary, I believe any ideas? Thanks Later,
      JoeSox
      www.joeswammi.com
      www.humanaiproject.org

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

      See the FAQ 2.5 I added some source files I got from someone else into my project and the compiler gives the error "C1010: unexpected end of file while looking for precompiled header directive." Why?[^] --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

      J 2 Replies Last reply
      0
      • M Michael Dunn

        See the FAQ 2.5 I added some source files I got from someone else into my project and the compiler gives the error "C1010: unexpected end of file while looking for precompiled header directive." Why?[^] --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

        J Offline
        J Offline
        JoeSox
        wrote on last edited by
        #3

        Michael Dunn wrote: See the FAQ Thanks Michael! That worked, of course. You helped stop me from chasing my tail! I miss the easy details sometimes. But It gave me these 2 warnings classimage.cpp Generating Code... Linking... Creating library Release/carl2.lib and object Release/carl2.exp carl2.exp : warning LNK4070: /OUT:facedetect.exe directive in .EXP differs from output filename "Release/carl2.exe"; ignoring directive Release/carl2.exe : warning LNK4086: entrypoint "_WinMainCRTStartup" is not __stdcall with 12 bytes of arguments; image may not run What does this mean to you? I think I know what the first means but the second? Later,
        JoeSox
        www.joeswammi.com
        www.humanaiproject.org

        1 Reply Last reply
        0
        • M Michael Dunn

          See the FAQ 2.5 I added some source files I got from someone else into my project and the compiler gives the error "C1010: unexpected end of file while looking for precompiled header directive." Why?[^] --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

          J Offline
          J Offline
          JoeSox
          wrote on last edited by
          #4

          Well, I took out a .def file that was originally made for the exporting of the functions since it was originally a .dll, ; facedetect.def : Declares the module parameters for the DLL. LIBRARY "facedetect" DESCRIPTION 'facedetect Windows Dynamic Link Library' EXPORTS RCobj_InitFaceDetect RCobj_detectfaces RCobj_getObject RCobj_setBorder RCobj_detectfeatures RCobj_trackface that got rid of the warnings but now the main app's dialogbox doesn't appear upon execution, hhmmm. Later,
          JoeSox
          www.joeswammi.com
          www.humanaiproject.org

          M 1 Reply Last reply
          0
          • J JoeSox

            Well, I took out a .def file that was originally made for the exporting of the functions since it was originally a .dll, ; facedetect.def : Declares the module parameters for the DLL. LIBRARY "facedetect" DESCRIPTION 'facedetect Windows Dynamic Link Library' EXPORTS RCobj_InitFaceDetect RCobj_detectfaces RCobj_getObject RCobj_setBorder RCobj_detectfeatures RCobj_trackface that got rid of the warnings but now the main app's dialogbox doesn't appear upon execution, hhmmm. Later,
            JoeSox
            www.joeswammi.com
            www.humanaiproject.org

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

            You're making an EXE now, right? Then removing the .DEF file from the build is right, AFAIK .DEF files are not relevant to EXEs. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

            1 Reply Last reply
            0
            • J JoeSox

              :doh::mad: I need some new eyes on this one, it's driving me mad:rolleyes: I am trying to use Bob Mottram's classes. Everything compiles from the download http://prdownloads.sourceforge.net/rodney/facedetect.zip?download[^] But when I imported the files into my project I receive Fatal Error C1010 unexpected end of file while looking for precompiled header directive classimage.cpp C:\Backup2\carl2\classimage.cpp(573) : fatal error C1010: unexpected end of file while looking for precompiled header directive I have OpenCV hooked up correctly and imported all the files neccesary, I believe any ideas? Thanks Later,
              JoeSox
              www.joeswammi.com
              www.humanaiproject.org

              P Offline
              P Offline
              PengFeidu
              wrote on last edited by
              #6

              please include"stdafx.h" in source file and header file, or turn using precompilerd header off in program setting. if you turn on using precompiled header, vc will compile the source code beginning at stdafx.h hope this helps to you. dupengfei

              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