Help is needed for C program compiled by C++

W

wtxwtx

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.

Thank you.

Weng
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top