首页 > 技术文章 > QT 出现 warning: unterminated #pragma pack (push, ...) at end of file 问题后,解决方案

yhcasey 2021-04-11 22:18 原文

使用QT环境:
Qt Creator 4.13.1
Based on Qt 5.15.1 (MSVC 2019, 32 bit)

问题现象:

解决办法:
在#pragma pack(push) 前面加上分号

参考:
https://blog.csdn.net/qq_38777624/article/details/107022865
https://bugreports.qt.io/browse/QTCREATORBUG-21437

推荐阅读