QTest dosnt编译

时间:2013-10-06 13:26:08

标签: c++ qt qtestlib

    /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>,则编译得很好。

0 个答案:

没有答案