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. programming C in Visual C++ express edition.

programming C in Visual C++ express edition.

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiondelphihardware
23 Posts 7 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.
  • C cavemen

    ------ Build started: Project: Lesson1_2, Configuration: Debug Win32 ------ Compiling... Lesson1_2.cpp Hello world.cpp c:\documents and settings\safeuser\my documents\visual studio 2008\projects\lesson1_2\lesson1_2\hello world.cpp(1) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? Generating Code... Build log was saved at "file://c:\Documents and Settings\SafeUser\My Documents\Visual Studio 2008\Projects\Lesson1_2\Lesson1_2\Debug\BuildLog.htm" Lesson1_2 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

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

    cavemen wrote:

    c:\documents and settings\safeuser\my documents\visual studio 2008\projects\lesson1_2\lesson1_2\hello world.cpp(1) : fatal error C1010: unexpected end of file while looking for precompiled header.

    See here.

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "Man who follows car will be exhausted." - Confucius

    1 Reply Last reply
    0
    • C cavemen

      not sure where i do that

      S Offline
      S Offline
      sunlin7
      wrote on last edited by
      #22

      You need run VisualStudio, then choose the follow options begin from "Tools" menu: "Tools->Options...->Project and solutions->VC++ Directories" you can set the executable/libraray/include directories now.

      1 Reply Last reply
      0
      • C cavemen

        I did. I had to hit "build solution" before running it. However it doesn't want to compile the #include void main( void ) { printf("Hello World\n"); } The building information in "Output" tells me that there is one error the compiler had to skip somewhere.

        C Offline
        C Offline
        cavemen
        wrote on last edited by
        #23

        PROBLEM SOLVED thank you everybody for your time I had to start EMPTY CONSOLE project and add my C++ code file to that. NO pricompiled headers. (I don't even know what they do)

        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