Re: Help is needed to compile C program using Visual Studie 2005

Tech-Archive recommends: Fix windows errors by optimizing your registry



wtxwtx@xxxxxxxxx wrote:
Hi,
I need your help.

I have a legend C program that works well after it was compiled under
Visial Studio 6.


Now a new version of Visial Studio 2005, V8 is installed on my
machine.

And I failed to generate its *.exe file.


What I have done is:
1. Create a project under C++;
2. Select 32-bit window console project;
3. Add my *.c files into it.
4. Compile it.

Error information:
When I included statement:
#include "stdafx.h"

Error information:
Error 1 fatal error C1853: 'Debug\Filter.pch' precompiled
header file
is from a previous version of the compiler, or the precompiled header
is C++ and you are using it from C (or vice
versa) c:\0-filter\filter\filter.c 66
Line 66 points --> #include "stdafx.h"

When I excluded statement:
#include "stdafx.h"

Error information:
Error 1 fatal error C1010: unexpected end of file while
looking for
precompiled header. Did you forget to add '#include "stdafx.h"' to
your

source? c:\0-filter\filter\filter.c 445
I don't know what to do to correct the situation.

Make sure it's the very first non-comment and non-empty line in your
source file. Or disable the use of precompiled headers altogether.

V

--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


.



Relevant Pages

  • Re: Help is needed to compile C program using Visual Studie 2005
    ... Now a new version of Visial Studio 2005, V8 is installed on my machine. ... Compile it. ... Error information: ... is from a previous version of the compiler, or the precompiled header ...
    (microsoft.public.vc.language)
  • Re: Help is needed to compile C program using Visual Studie 2005
    ... The information I gave is after I rebuilt it in a brand new directory ... Now a new version of Visial Studio 2005, V8 is installed on my machine. ... Compile it. ... is from a previous version of the compiler, or the precompiled header ...
    (microsoft.public.vc.language)
  • Help is needed to compile C program using Visual Studie 2005
    ... Now a new version of Visial Studio 2005, V8 is installed on my machine. ... Compile it. ... Error information: ... is from a previous version of the compiler, or the precompiled header ...
    (microsoft.public.vc.language)
  • Re: Help is needed to compile C program using Visual Studie 2005
    ... Now a new version of Visial Studio 2005, V8 is installed on my machine. ... Error information: ... is from a previous version of the compiler, or the precompiled header ... Compiler is seeing the old pch file and it seems to be up to date, so it is not being regenerated. ...
    (microsoft.public.vc.language)
  • Re: What type of project for a simple program to run in a DOS window
    ... Not c++ Not even Windows. ... default header file that will be compiled into a precompiled header for you. ... The simplest programs you can write are console applications. ... the .NET framework or compile a native application. ...
    (microsoft.public.dotnet.languages.vc)