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. Simple Problem VC++6

Simple Problem VC++6

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 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.
  • Q Offline
    Q Offline
    questaware
    wrote on last edited by
    #1

    This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???

    U M 2 Replies Last reply
    0
    • Q questaware

      This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???

      U Offline
      U Offline
      User 346191
      wrote on last edited by
      #2

      You must either add #include "stdafx.h" BEFORE your include, or change the cpp file "Settings" -> "Precompiled Headers" to "Not using precompiled headers". Cheers, Andy

      1 Reply Last reply
      0
      • Q questaware

        This must be a silly problem I add a new .c or .cpp file to my project with its own .h which it includes: logmsg.c: ... #include "logmsg.h" ... I get: logmsg.cpp(236) : fatal error C1010: unexpected end of file while looking for precompiled header directive ???

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

        This was just answered a few threads ago http://www.codeproject.com/cpp/cppforumfaq.asp#cl_nopch[^] --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER

        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