CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: I'm stuck

  1. #1
    Join Date
    May 1999
    Posts
    2

    I'm stuck

    I'm writing a dll. At this moment when i want to compile it it give's me the message:
    fatal error C1010: unexpected end of file while looking for precompiled header directive
    How van I get rid of it?



  2. #2
    Join Date
    May 1999
    Posts
    44

    Re: I'm stuck


    U can start with checking U'r brackets.


  3. #3
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: I'm stuck

    Include stdafx.h on the first line of your code or change the following project settings :

    C/C++ category Precompiled headers :
    select Not using precompiled headers or
    Automatic use of precompiled headers through header stdafx.h.


  4. #4
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: I'm stuck

    There is some truth in Franky’s response.
    You must have messed with project settings.

    Go to project settings, select project (top). From the drop box select All Configurations. This way you will set it properly in both Debug and Release modes.

    Go to C++ tab, select Precompiled headers.
    Select “Use precompiled header file…”
    In Through header box type stdafx.h.

    Now expand tree, go and from expanded Source folder select StdAfx.cpp.
    Select “Create precompiled header file…”
    In Through header box type stdafx.h.

    Hit OK and you should be on the right track.


    John Cz
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured