Cannot add file .c to C++ project
I add file C to C++ project. They show error massage.
I add this file
Mytest.h and Mytest.c
Mytest.h have this detail
#ifdef __cplusplus
extern "C" {
#endif
int TestMe(int, int);
#ifdef __cplusplus
}
#endif
Mytest.c have this detail
#include "Mytest.h"
int TestMe(int x, int y)
{
return x+y;
}
I use Visual C++ 6.0 add this C file to my C++ project . There are error message like this
--------------------Configuration: BExtract - Win32 Debug--------------------
Compiling...
Mytest.c
e:\microcomputer\mytest.c(10) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\Mytest.sbr': No such file or directory
Error executing bscmake.exe.
BExtract.exe - 2 error(s), 0 warning(s)
Do you know the reason of error? How to solve the problem?