【发布时间】:2016-07-19 15:47:50
【问题描述】:
抱歉,我对这类东西没有经验,但我一直在互联网上搜索一段时间,以了解如何在 Win 10 上将 Quazip 与 Qt 5.6 一起使用。我将不胜感激有关如何操作的步骤列表构建 Quazip 并在 Qt Creator 中使用它。
到目前为止,我尝试下载 Quazip,并将 pri 文件包含在我的 .pro 文件中
include(quazip-0.7.2/quazip.pri)
然后我替换了每个实例:
#include "zlib.h"
和
#include <zlib.h>
到
#include <QtZlib/zlib.h>
执行此操作后,我收到许多编译器警告以及一些错误。
我的错误是:
QuaZIODevice::staticMetaObject': definition of dllimport static data member not allowed
QuaGzipFile::staticMetaObject': definition of dllimport static data member not allowed
QuaZipFile::staticMetaObject': definition of dllimport static data member not allowed
我的所有 15 条警告都包含:
inconsistent dll linkage
非常感谢您在此问题上的任何帮助。
【问题讨论】: