读书人

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

发布时间: 2013-03-26 09:54:34 作者: rapoo

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新论坛上线!你怎么看?

读书人网 >C++

热点推荐