读书人

编译QT库遇到了有关问题望各位兄弟姐

发布时间: 2012-03-13 11:21:11 作者: rapoo

编译QT库遇到了问题,望各位兄弟姐妹们帮个忙
我的配制命令是
qconfigure.bat msvc2005 -release -qt-style-windowsxp
然后出现这问题:
d:\qt430\include\qtcore\../../src/corelib/global/qglobal.h(27) : fatal error C10
83: Cannot open include file: 'stddef.h ': No such file or directory
NMAKE : fatal error U1077: “ "D:\Microsoft Visual Studio 8\VC\bin\cl.EXE "”: 返
回代码“0x2”

有人知道怎么解决不?我环境变量已经添加好了
qt是4.3.0的库,下载了补丁了已经。

[解决办法]
检查你的环境变量是否设置正确了 ...

/***
*stddef.h - definitions/declarations for common constants, types, variables
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file contains definitions and declarations for some commonly
* used constants, types, and variables.
* [ANSI]
*
* [Public]
*
****/

#if _MSC_VER > 1000
#pragma once
#endif

#ifndef _INC_STDDEF
#define _INC_STDDEF

#include <crtdefs.h>

#ifdef __cplusplus
extern "C " {
#endif

/* Define NULL pointer value */
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif


/* Declare reference to errno */
#ifndef _CRT_ERRNO_DEFINED
#define _CRT_ERRNO_DEFINED
_CRTIMP extern int * __cdecl _errno(void);
#define errno (*_errno())

errno_t __cdecl _set_errno(__in int _Value);
errno_t __cdecl _get_errno(__out int * _Value);
#endif

/* Define offsetof macro */
#ifdef __cplusplus

#ifdef _WIN64
#define offsetof(s,m) (size_t)( (ptrdiff_t)&reinterpret_cast <const volatile char&> ((((s *)0)-> m)) )
#else
#define offsetof(s,m) (size_t)&reinterpret_cast <const volatile char&> ((((s *)0)-> m))
#endif

#else

#ifdef _WIN64
#define offsetof(s,m) (size_t)( (ptrdiff_t)&(((s *)0)-> m) )
#else
#define offsetof(s,m) (size_t)&(((s *)0)-> m)
#endif

#endif/* __cplusplus */

#ifdef _MT
_CRTIMP extern unsigned long __cdecl __threadid(void);
#define _threadid (__threadid())
_CRTIMP extern uintptr_t __cdecl __threadhandle(void);
#endif


#ifdef __cplusplus
}
#endif

#endif /* _INC_STDDEF */

读书人网 >C++

热点推荐