Re: Help is needed to compile C program using Visual Studie 2005
- From: wtxwtx@xxxxxxxxx
- Date: 7 Jun 2006 15:02:05 -0700
Hi,
The information I gave is after I rebuilt it in a brand new directory
and everything is blank.
I will try to put #include "stdafx.h" in the first statement and see
what will happening.
Thank you.
Weng
Arnaud Debaene wrote:
<wtxwtx@xxxxxxxxx> a écrit dans le message de news:
1149701849.804182.284050@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
Do not remove the #include "stdafx.h" stuff. Leave Visual Studio, delete all
"Release" and "Debug" directory, as well as any .pch and .ncb file in the
project folder. Restart Visual and rebuild.
Arnaud
MVP - VC
.
- Follow-Ups:
- References:
- Help is needed to compile C program using Visual Studie 2005
- From: wtxwtx
- Re: Help is needed to compile C program using Visual Studie 2005
- From: Arnaud Debaene
- Help is needed to compile C program using Visual Studie 2005
- Prev by Date: Re: Help is needed to compile C program using Visual Studie 2005
- Next by Date: Re: Easy way to read out formated string ?
- Previous by thread: Re: 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
|