Hello!
I'm trying to build a benchmark application for some tests with Qt. I was going to use QElapsedTimer when I found this article (http://qt-project.org/doc/qt-4.8/qte...tutorial5.html) telling about the usage of QBENCHMARK macro for doing such a work. I tried to implement it in my code after including QtTest (using Qt 4.8) and Qt Creator returned me lots of undefined reference errors.
Qt Code:
//in .cpp #include <QtTest/QtTest> using namespace QTest; //... void MainWindow::on_startQBenchmark_clicked() { QBENCHMARK { int aaa = 0; } }To copy to clipboard, switch view to plain text mode
Image:
Screenshot from 2014-06-27 10:56:40.jpg
I can't understand why is that happening![]()
Thanks,
Momergil
Edit: I noticed now that the compiler errors appears even if I don't call QBENCHMARK.
Bookmarks