Thread: Unexpected end of file error while looking for file

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    2

    Question Unexpected end of file error while looking for file

    Hello all!

    I am building a wn32 console app in vs.net 2003. When I attempt to build the app, I get an error that reads something like this:

    unexpected end of file error while looking for (file name here)

    What did I do to create this and how to I correct it?

    All help greatly appreciated!
    Gary

  2. #2
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    367
    You can either turn off the option to use precompiled headers, which is available if you right click on the project within the solution explorer, and select options. It is there somewhere. There is something else you can do..... have you been messing with the stdafx.h and .cpp files? Hope this helps a bit.
    Be a leader and not a follower.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    2
    Thanks! I will try that. I have not had a reason to play with any of those other files, just been typing code and am now ready to build.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    That's why you should always check the option "Empty Project" when creating a project in VC++.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  3. Unexpected end of file, splitting headers into .h/.cpp
    By Shamino in forum C++ Programming
    Replies: 19
    Last Post: 12-11-2007, 01:08 PM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  5. Unexpected end of File Error
    By maxthecat in forum Windows Programming
    Replies: 5
    Last Post: 07-30-2002, 02:09 AM