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