APSTRING.H Errors

This is a discussion on APSTRING.H Errors within the C++ Programming forums, part of the General Programming Boards category; PHP Code: -------------------- Configuration :  RPG  -  Win32 Debug -------------------- Compiling ... apstring . cpp c :\ program files \ microsoft visual studio \ ...

  1. #1
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644

    Question APSTRING.H Errors

    PHP Code:
    --------------------ConfigurationRPG Win32 Debug--------------------
    Compiling...
    apstring.cpp
    c
    :\program files\microsoft visual studio\vc98\include\apstring.cpp(387) : fatal error C1010unexpected end of file while looking for precompiled header directive
    Generating Code
    ...
    Compiling...
    RPG.cpp
    Generating Code
    ...
    Error executing cl.exe.

    RPG.exe 1 error(s), 0 warning(s
    Everytime I try to compile my RPG with apstring.h added, it gives this error...and I've done nothing w/ the code in it. Could someone please help me with this?

  2. #2
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    What headers do you have included above it? This could happen due to missing ; or {}, possibly from a class definition?

    P.S. You have good taste in music. Reanimation is a good CD, dito on your sig.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Go to www.google.com and put this in as search criteria. There's a load of hits about it.

    fatal error C1010: unexpected end of file while looking for precompiled header directive
    I can't put a direct link in, the board software sticks an HTML <br> in the middle of it.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Open apstring.h and add #include "stdafx.h" at the very top line.
    Or, you could create a project without precompiled header files.

  5. #5
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    Originally posted by Eibro
    Open apstring.h and add #include "stdafx.h" at the very top line.
    Or, you could create a project without precompiled header files.
    The project doesn't have precompiled header files (I never use that).
    Well, no files over-or-under it, if you mean the file with it included. The file itself has the same as it had when I got it. It used to work fine before.
    [Thanks lightatdawn. Great CD and great song]
    I'll try the include thing that Eibro suggested. Thanks.

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, 04:11 PM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 11:50 AM
  3. Winsock compilation errors
    By jmd15 in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-03-2005, 09:00 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. Help me with these errors... :-(
    By major_small in forum C++ Programming
    Replies: 6
    Last Post: 09-07-2003, 09:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21