“Debug\test.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反) //?该如何解决
“Debug\test.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反) //????
近日用VS中的WIN32控制台编了个C (test)程序,每一个源文件编译时都报错:
“Debug\test.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反) 不知道是什么原因,特附上其中一个源文件的预处理部份代码:
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h "
#ifndef _TRAIN_BOOKING_BOOKOP_C
#define _TRAIN_BOOKING_BOOKOP_C
//////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "train_booking_declare.h "
#include "train_booking_const.h "
#include "train_booking_unit.h "
/////////////////////////////////////////////////////////////////////////////
...
...
...
#endif
希望有哪位高手帮我指出错误,不胜感激!
------解决方案--------------------
应该是 stdafx.h的问题
------解决方案--------------------
你上面那个是什么文件?
近日用VS中的WIN32控制台编了个C (test)程序,每一个源文件编译时都报错:
“Debug\test.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反) 不知道是什么原因,特附上其中一个源文件的预处理部份代码:
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h "
#ifndef _TRAIN_BOOKING_BOOKOP_C
#define _TRAIN_BOOKING_BOOKOP_C
//////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "train_booking_declare.h "
#include "train_booking_const.h "
#include "train_booking_unit.h "
/////////////////////////////////////////////////////////////////////////////
...
...
...
#endif
希望有哪位高手帮我指出错误,不胜感激!
------解决方案--------------------
应该是 stdafx.h的问题
------解决方案--------------------
你上面那个是什么文件?