出现两个错误,出错的位置是在系统自带的文件里.这是怎么回事?d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\sys\stat.h(32): error C2144: 语法错误 : “int”的前面应有“;”
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\sys\stat.h(32): fatal error C1004: 遇到意外的文件结束以下附上源文件stat.h/***
*sys/stat.h - defines structure used by stat() and fstat()
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the structure used by the _stat() and _fstat()
* routines.
* [System V]
*
* [Public]
*
****/#if _MSC_VER > 1000
#pragma once
#endif#ifndef _INC_STAT
#define _INC_STAT#if !defined(_WIN32)
#error ERROR: Only Win32 target supported!
#endif
#ifdef _MSC_VER
#pragma pack(push,8)
#endif /* _MSC_VER */#ifdef __cplusplus
extern "C" { //IDE(VC7.0)指出出错的位置在这里,这个文件是系统自带的
#endif/* Define _CRTIMP */#ifndef _CRTIMP
#ifdef _DLL
#define _CRTIMP __declspec(dllimport)
#else /* ndef _DLL */
#define _CRTIMP
#endif /* _DLL */
#endif /* _CRTIMP */
//....以下省略
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\sys\stat.h(32): fatal error C1004: 遇到意外的文件结束以下附上源文件stat.h/***
*sys/stat.h - defines structure used by stat() and fstat()
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the structure used by the _stat() and _fstat()
* routines.
* [System V]
*
* [Public]
*
****/#if _MSC_VER > 1000
#pragma once
#endif#ifndef _INC_STAT
#define _INC_STAT#if !defined(_WIN32)
#error ERROR: Only Win32 target supported!
#endif
#ifdef _MSC_VER
#pragma pack(push,8)
#endif /* _MSC_VER */#ifdef __cplusplus
extern "C" { //IDE(VC7.0)指出出错的位置在这里,这个文件是系统自带的
#endif/* Define _CRTIMP */#ifndef _CRTIMP
#ifdef _DLL
#define _CRTIMP __declspec(dllimport)
#else /* ndef _DLL */
#define _CRTIMP
#endif /* _DLL */
#endif /* _CRTIMP */
//....以下省略
应该是我自己的代码出错,但我就是不知道代码有那里错,一般是什么错导致这种情况出现的,
另外说明一下,我的代码是从一些教程(年代较老)上拷下来的。而现在用的IDE是Dotnet2003
而且使用了using namespace std的,有那位大虾有这方面的经验,请赐教.