首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

编译QT库遇到了有关问题,望各位兄弟姐妹们帮个忙

2012-03-13 
编译QT库遇到了问题,望各位兄弟姐妹们帮个忙我的配制命令是qconfigure.batmsvc2005-release-qt-style-wind

编译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 */

热点排行