4
    /usr/include/qt5/QtTest/qtestmouse.h:161: undefined reference to `QTest::defaultMouseDelay()'
    /usr/include/qt5/QtTest/qtestmouse.h:206: undefined reference to `QTest::qWarn(char const*, char const*, int)'
    collect2: error: ld returned 1 exit status

我创建简单的测试:

#include <QtTest/QTest>

#include "TestHuff.h"
#include "HuffmanCode.h"

void TestHuff::SimpleTest()
{}

如果我删除#include <QtTest/QTest>它编译得很好。

4

0 回答 0