Thread: errors!!

  1. #1
    Registered User
    Join Date
    Nov 2002


    Hi guys,

    I'm in adv. c++ at my college here and its rough..really rough..i'm starting to hate it and i dont' want to do so..i started last night at 7PM and went to bed this morning at 4..and i'm still not even done writing the classes. (I put another 10 hours in prior to this as well) I dunno why i'm tellin ya this...but ah well...

    anyways..i think my classes are written..but when i compile i get this strange error for each of my 6 classes...

    it states....

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

    Do you know what this means..its brings up 7 errors for for each of my classes and now one for my MAIN...does anyone know what it is..the deadline for my classes is tuesday...AHHH...its only the first week of school

    thanks again... BNB

  2. #2
    Join Date
    Aug 2001
    Groningen (NL)
    You are using Visual C++ and MFC? In that case you are probably missing to include the file stdafx.h in your source files.

  3. #3
    Registered User
    Join Date
    Nov 2002
    i'm using .net right now! HELP!

  4. #4
    I lurk
    Join Date
    Aug 2002
    I'm not sure about .net, but for VC6 this works... try it.

    Project->Settings->C/C++->Category: Precompiled Headers
    Select "Not using precompiled headers"

    If that doesn't work, then a last resort would be to insert #include "stdafx.h" at the top of every single one of your source files.

    Hope that helps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 03:11 PM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  3. Unknown Errors in simple program
    By neandrake in forum C++ Programming
    Replies: 16
    Last Post: 04-06-2004, 02:57 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. errors in class(urgent)
    By ayesha in forum C++ Programming
    Replies: 2
    Last Post: 11-10-2001, 06:51 PM