Re: Help is needed to compile C program using Visual Studie 2005
- From: "Victor Bazarov" <v.Abazarov@xxxxxxxxxxxx>
- Date: Wed, 7 Jun 2006 13:41:03 -0400
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
.
- References:
- Prev by Date: Help is needed to compile C program using Visual Studie 2005
- Next by Date: Re: Including only once - What is best practice?
- Previous by thread: Help is needed to compile C program using Visual Studie 2005
- Next by thread: Re: Help is needed to compile C program using Visual Studie 2005
- Index(es):
Relevant Pages
|