编译报错!
这是_stddef.h里的内容
/* _stddef.h
multi-includable Definitions for common types, and NULL
*/
/*
* C/C++ Run Time Library - Version 9.5
*
* Copyright (c) 1987, 1999 by Inprise Corporation
* All Rights Reserved.
*
*/
/* $Revision: 9.1 $ */
#ifndef ___STDDEF_H
#define ___STDDEF_H
#if !defined(___DEFS_H)
#include <_defs.h>
#endif
#ifndef NULL
#include <_null.h>
#endif
#ifdef __cplusplus
namespace std{
#endif /* __cplusplus */
/* Define __STD to expand to std:: or nothing depending on being in C++. */
#ifdef __cplusplus
# define __STD std::
#else
# define __STD
#endif
/*
Define the size_t type in the std namespace if in C++ or globally if in C.
If we're in C++, make the _SIZE_T macro expand to std::size_t
*/
#if !defined(_SIZE_T) && !defined(_SIZE_T_DEFINED)
# define _SIZE_T_DEFINED
typedef unsigned int size_t;
# if defined(__cplusplus)
# define _SIZE_T std::size_t
# else
# define _SIZE_T size_t
# endif
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn -nak
#endif
#endif /* !RC_INVOKED */
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef int ptrdiff_t;
#endif
#define offsetof( s_name, m_name ) (_SIZE_T)&(((s_name _FAR *)0)->m_name)
#ifndef __cplusplus
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED)
#define _WCHAR_T
#define _WCHAR_T_DEFINED /* For WINDOWS.H */
typedef unsigned short wchar_t;
#endif
#endif
/*
Define the wint_t type in the std namespace if in C++ or globally if in C.
If we're in C++, make the _WINT_T macro expand to std::wint_t
*/
#if !defined(_WINT_T)
typedef wchar_t wint_t;
# ifdef __cplusplus
# define _WINT_T std::wint_t
# else
# define _WINT_T wint_t
# endif
#endif
#ifndef _WCTYPE_T_DEFINED
typedef wchar_t wctype_t;
#define _WCTYPE_T_DEFINED
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern unsigned long _RTLENTRY _EXPFUNC __threadid(void);
#define _threadid (__threadid())
#ifdef __cplusplus
}
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn .nak
#endif
#endif /* !RC_INVOKED */
#ifdef __cplusplus
} //std
#endif /* __cplusplus */
#endif /* __STDDEF_H */
#if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(___STDDEF_H_USING_LIST)
#define ___STDDEF_H_USING_LIST
using std::ptrdiff_t;
using std::__threadid;
using std::size_t;
using std::wint_t;
using std::wctype_t;
#endif /* __USING_CNAME__ */
报的第一个错是declaration syntax error
报的第一个错是qualifier 'std' is not a class or namespace name
这是怎么回事呀,_stddef.h里的内容是干什么用的
/* _stddef.h
multi-includable Definitions for common types, and NULL
*/
/*
* C/C++ Run Time Library - Version 9.5
*
* Copyright (c) 1987, 1999 by Inprise Corporation
* All Rights Reserved.
*
*/
/* $Revision: 9.1 $ */
#ifndef ___STDDEF_H
#define ___STDDEF_H
#if !defined(___DEFS_H)
#include <_defs.h>
#endif
#ifndef NULL
#include <_null.h>
#endif
#ifdef __cplusplus
namespace std{
#endif /* __cplusplus */
/* Define __STD to expand to std:: or nothing depending on being in C++. */
#ifdef __cplusplus
# define __STD std::
#else
# define __STD
#endif
/*
Define the size_t type in the std namespace if in C++ or globally if in C.
If we're in C++, make the _SIZE_T macro expand to std::size_t
*/
#if !defined(_SIZE_T) && !defined(_SIZE_T_DEFINED)
# define _SIZE_T_DEFINED
typedef unsigned int size_t;
# if defined(__cplusplus)
# define _SIZE_T std::size_t
# else
# define _SIZE_T size_t
# endif
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn -nak
#endif
#endif /* !RC_INVOKED */
#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef int ptrdiff_t;
#endif
#define offsetof( s_name, m_name ) (_SIZE_T)&(((s_name _FAR *)0)->m_name)
#ifndef __cplusplus
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED)
#define _WCHAR_T
#define _WCHAR_T_DEFINED /* For WINDOWS.H */
typedef unsigned short wchar_t;
#endif
#endif
/*
Define the wint_t type in the std namespace if in C++ or globally if in C.
If we're in C++, make the _WINT_T macro expand to std::wint_t
*/
#if !defined(_WINT_T)
typedef wchar_t wint_t;
# ifdef __cplusplus
# define _WINT_T std::wint_t
# else
# define _WINT_T wint_t
# endif
#endif
#ifndef _WCTYPE_T_DEFINED
typedef wchar_t wctype_t;
#define _WCTYPE_T_DEFINED
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern unsigned long _RTLENTRY _EXPFUNC __threadid(void);
#define _threadid (__threadid())
#ifdef __cplusplus
}
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn .nak
#endif
#endif /* !RC_INVOKED */
#ifdef __cplusplus
} //std
#endif /* __cplusplus */
#endif /* __STDDEF_H */
#if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(___STDDEF_H_USING_LIST)
#define ___STDDEF_H_USING_LIST
using std::ptrdiff_t;
using std::__threadid;
using std::size_t;
using std::wint_t;
using std::wctype_t;
#endif /* __USING_CNAME__ */
报的第一个错是declaration syntax error
报的第一个错是qualifier 'std' is not a class or namespace name
这是怎么回事呀,_stddef.h里的内容是干什么用的
...全文
相关推荐
AutoHotkey 基于错误码体系解析编译全场景报错问题!.zip
AutoHotkey 基于错误码体系解析编译全场景报错问题!.zip
AutoHotkey 基于错误码解析解决编译全场景报错问题!.zip
AutoHotkey 基于错误码解析解决编译全场景报错问题!.zip
基于 Eclipse+STM32+Jlink 解决开发环境搭建与编译报错问题!.zip
基于 Eclipse+STM32+Jlink 解决开发环境搭建与编译报错问题!.zip
Dephi 2007 系统编译程序关闭报错Bug修复
Delphi2007 系统带有一个Bug,即程序编译后在退出时会报错。这个工具是修复那个bug,只需要执行后退出d2007重新打开即可修复!
Zxing 2.2 Android Demo (官网-条形码扫描器) 直接可编译运行不报错!
1、不要嫌我太狠,要这么多分。如果没有分发站内信给我,留下邮箱。 2、参看了N多博客、论坛均不得要领,一次又一次的失败了,无助了,差点放弃了,没人带就是苦啊,我容易么? 3、绝对可直接导入ADT环境后直接编译并在真机或者虚拟机上运行,不报错! 报的错误偶在各路搜索引擎上都找不到答案啊.


