Hi everybody Building kde5 by kdesrc-build in the last period, I was used to be annoyed by a small error related to kmymoney.
Something like CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o: In function `MyMoneySeqAccessMgrTest::testEmptyConstructor()': /home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:61: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' /home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:62: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' /home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:63: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' /home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:64: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' /home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:65: undefined reference to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' CMakeFiles/mymoneyseqaccessmgrtest.dir/mymoneyseqaccessmgrtest.cpp.o:/home/dj3mb3/kde/src/5/extragear/office/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp:66: more undefined references to `bool QTest::qCompare<unsigned int, unsigned long>(unsigned int const&, unsigned long const&, char const*, char const*, char const*, int)' follow collect2: error: ld returned 1 exit status Here a simple patch to fix the compiling error. Hoping to help with this small contribution Regards Luca -- P Please consider the environment before printing this e-mail
diff --git a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp index dcb4b4a..79a3303 100644 --- a/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp +++ b/kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp @@ -58,13 +58,13 @@ void MyMoneySeqAccessMgrTest::testEmptyConstructor() QCOMPARE(m->m_nextPayeeID, 0ul); QCOMPARE(m->m_nextScheduleID, 0ul); QCOMPARE(m->m_nextReportID, 0ul); - QCOMPARE(m->m_institutionList.count(), 0ul); - QCOMPARE(m->m_accountList.count(), 5ul); - QCOMPARE(m->m_transactionList.count(), 0ul); - QCOMPARE(m->m_transactionKeys.count(), 0ul); - QCOMPARE(m->m_payeeList.count(), 0ul); - QCOMPARE(m->m_tagList.count(), 0ul); - QCOMPARE(m->m_scheduleList.count(), 0ul); + QCOMPARE(m->m_institutionList.count(), 0u); + QCOMPARE(m->m_accountList.count(), 5u); + QCOMPARE(m->m_transactionList.count(), 0u); + QCOMPARE(m->m_transactionKeys.count(), 0u); + QCOMPARE(m->m_payeeList.count(), 0u); + QCOMPARE(m->m_tagList.count(), 0u); + QCOMPARE(m->m_scheduleList.count(), 0u); QCOMPARE(m->m_dirty, false); QCOMPARE(m->m_creationDate, QDate::currentDate());
_______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel