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



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

.



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
    ... Now a new version of Visial Studio 2005, ... Compile it. ... Error information: ... 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: 1.04 Mb with nothing in file ???
    ... compiled, particularly if you have neither done Debug - compile nor run some ... I broke down and rebuilt the wb. ... Code to rebuild the worksheets and named ranges. ... Dim ws As Worksheet, ws2 As Worksheet ...
    (microsoft.public.excel.programming)
  • Re: what kind of computer for programmer ?
    ... >> I rebuilt all the files, ... > into most ramdisk setups compile so quickly that they aren't ... This is precisely why ramdisks have gone from ... of files recompile, that's ok however you do it. ...
    (comp.programming)