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



Hi,
I am still in big trouble failing to generate *.c project for window
32-bit console application.

If I put #include "stdafx.h" in the head, error information is:

Yes, I just use *.c file and there is no *.cpp files in my project.

If I deleted #include "stdafx.h" in the head part, error information
is:
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\newfilter\filter\filter.c 60

The following #include statements are all I attached in my *.c file:
#include <sys/stat.h>
#include <stdio.h>
#include <io.h>
#include <string.h>
#include <iostream.h>
#include <direct.h>

If I commet out all #include statements while keeping #include
"stdafx.h", the same error as without commenting out all include
statements.

What should I do next?

Thank you.

Weng

.


Loading