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

windows下编译qt程序出现C1021异常

2013-03-26 
windows下编译qt程序出现C1021错误F:\Qt\4.8.3\include\Qt\qaction.h(3) : fatal error C1021: invalid pr

windows下编译qt程序出现C1021错误
F:\Qt\4.8.3\include\Qt\qaction.h(3) : fatal error C1021: invalid preprocessor command 'warning'



这个头文件里的代码是

#ifndef QT_NO_QT_INCLUDE_WARN
    #if defined(__GNUC__)
        #warning "Inclusion of header files from include/Qt is deprecated."(错误指向的是这里)
    #elif defined(_MSC_VER)
        #pragma message("WARNING: Inclusion of header files from include/Qt is deprecated.")
    #endif
#endif

#include "../QtGui/qaction.h"

[解决办法]
元芳,CSDN新论坛上线!你怎么看?

热点排行