« Return to Thread: collect2: ld returned 1 exit status

collect2: ld returned 1 exit status

by cactusbin :: Rate this Message:

Reply to Author | View in Thread

When trying to compile I get the error: "collect2: ld returned 1 exit status" here is my full log:

/bin/sh ../libtool --silent --tag=CXX   --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions  -L/opt/kde/lib -L/opt/qt/lib -L/usr/lib     -export-dynamic  -o kmymoney2 kmymoneyutils.o kstartuplogo.o kmymoney2.o main.o kmymoneyglobalsettings.o kmymoney2_stub.o kmymoney2_skel.o kmymoneysettings.o ../kmymoney2/views/libviews.a ../kmymoney2/reports/libreports.a ../kmymoney2/wizards/newuserwizard/libnewuserwizard.a ../kmymoney2/wizards/newaccountwizard/libnewaccountwizard.a ../kmymoney2/wizards/wizardpages/libwizardpages.a ../kmymoney2/dialogs/libdialogs.a ../kmymoney2/dialogs/settings/libsettings.a ../kmymoney2/widgets/libwidgets.a ../kmymoney2/converter/libconverter.a ../kmymoney2/mymoney/storage/libstorage.a ../kmymoney2/mymoney/libkmm_mymoney.la ../libkgpgfile/libkgpgfile.la ../kmymoney2/plugins/interfaces/libinterfaces.a ../kmymoney2/plugins/libkmm_plugin.la ../libkdchart/libkmm_kdchart.la dialogs/libdialogs.a -lkabc -lkhtml -lkdeui -lkdecore -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread                                                                                                  
../kmymoney2/views/libviews.a(kforecastview.o): In function `KForecastView::loadChartView()':          
kforecastview.cpp:(.text+0x50da): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'                                                                                              
kforecastview.cpp:(.text+0x50ec): undefined reference to `reports::PivotTable::drawChart(reports::KReportChartView&) const'                                                                                  
../kmymoney2/views/libviews.a(kforecastview.o): In function `reports::PivotTable::~PivotTable()':      
kforecastview.cpp:(.text._ZN7reports10PivotTableD1Ev[reports::PivotTable::~PivotTable()]+0xe): undefined reference to `vtable for reports::PivotTable'                                                        
../kmymoney2/views/libviews.a(kreportsview.o): In function `KReportsView::KReportTab::updateReport()':
kreportsview.cpp:(.text+0x536c): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'                                                                                              
kreportsview.cpp:(.text+0x539c): undefined reference to `reports::QueryTable::QueryTable(MyMoneyReport const&)'                                                                                              
../kmymoney2/views/libviews.a(khomeview.o): In function `KHomeView::showNetWorthGraph()':              
khomeview.cpp:(.text+0x68f5): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'                                                                                                  
khomeview.cpp:(.text+0x692d): undefined reference to `reports::PivotTable::drawChart(reports::KReportChartView&) const'                                                                                      
../kmymoney2/views/libviews.a(khomeview.o): In function `KHomeView::showBudget()':                    
khomeview.cpp:(.text+0x118a9): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'                                                                                                
../kmymoney2/views/libviews.a(khomeview.o): In function `QMapPrivate<reports::ReportAccount, reports::PivotGridRowSet>::copy(QMapNode<reports::ReportAccount, reports::PivotGridRowSet>*)':                  
khomeview.cpp:(.text._ZN11QMapPrivateIN7reports13ReportAccountENS0_15PivotGridRowSetEE4copyEP8QMapNodeIS1_S2_E[QMapPrivate<reports::ReportAccount, reports::PivotGridRowSet>::copy(QMapNode<reports::ReportAccount, reports::PivotGridRowSet>*)]+0x3e): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                                                                                    
../kmymoney2/views/libviews.a(khomeview.o): In function `QMap<reports::ReportAccount, reports::PivotGridRowSet>::detachInternal()':                                                                          
khomeview.cpp:(.text._ZN4QMapIN7reports13ReportAccountENS0_15PivotGridRowSetEE14detachInternalEv[QMap<reports::ReportAccount, reports::PivotGridRowSet>::detachInternal()]+0x50): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                                                  
../kmymoney2/views/libviews.a(khomeview.o): In function `QMapPrivate<QString, reports::PivotInnerGroup>::copy(QMapNode<QString, reports::PivotInnerGroup>*)':                                                
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotInnerGroupEE4copyEP8QMapNodeIS0_S2_E[QMapPrivate<QString, reports::PivotInnerGroup>::copy(QMapNode<QString, reports::PivotInnerGroup>*)]+0x68): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                      
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotInnerGroupEE4copyEP8QMapNodeIS0_S2_E[QMapPrivate<QString, reports::PivotInnerGroup>::copy(QMapNode<QString, reports::PivotInnerGroup>*)]+0xa2): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                      
../kmymoney2/views/libviews.a(khomeview.o): In function `QMap<QString, reports::PivotInnerGroup>::detachInternal()':                                                                                          
khomeview.cpp:(.text._ZN4QMapI7QStringN7reports15PivotInnerGroupEE14detachInternalEv[QMap<QString, reports::PivotInnerGroup>::detachInternal()]+0x7d): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                                                                              
../kmymoney2/views/libviews.a(khomeview.o):khomeview.cpp:(.text._ZN4QMapI7QStringN7reports15PivotInnerGroupEE14detachInternalEv[QMap<QString, reports::PivotInnerGroup>::detachInternal()]+0xb7): more undefined references to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)' follow                      
../kmymoney2/views/libviews.a(khomeview.o): In function `QMapPrivate<QString, reports::PivotOuterGroup>::copy(QMapNode<QString, reports::PivotOuterGroup>*)':                                                
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEE4copyEP8QMapNodeIS0_S2_E[QMapPrivate<QString, reports::PivotOuterGroup>::copy(QMapNode<QString, reports::PivotOuterGroup>*)]+0x12c): undefined reference to `reports::PivotOuterGroup::m_kDefaultSortOrder'                                
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEE4copyEP8QMapNodeIS0_S2_E[QMapPrivate<QString, reports::PivotOuterGroup>::copy(QMapNode<QString, reports::PivotOuterGroup>*)]+0x55a): undefined reference to `reports::PivotOuterGroup::m_kDefaultSortOrder'                                
../kmymoney2/views/libviews.a(khomeview.o): In function `QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)':                                
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEEC1EPKS3_[QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)]+0x92): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                      
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEEC1EPKS3_[QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)]+0xcc): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                      
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEEC1EPKS3_[QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)]+0x10e): undefined reference to `reports::PivotGridRowSet::PivotGridRowSet(unsigned int)'                      
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEEC1EPKS3_[QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)]+0x125): undefined reference to `reports::PivotOuterGroup::m_kDefaultSortOrder'                                
khomeview.cpp:(.text._ZN11QMapPrivateI7QStringN7reports15PivotOuterGroupEEC1EPKS3_[QMapPrivate<QString, reports::PivotOuterGroup>::QMapPrivate(QMapPrivate<QString, reports::PivotOuterGroup> const*)]+0x1c0): undefined reference to `reports::PivotOuterGroup::m_kDefaultSortOrder'                                
../kmymoney2/reports/libreports.a(objectinfotable.o): In function `reports::ObjectInfoTable::init()':  
objectinfotable.cpp:(.text+0x4062): undefined reference to `reports::ListTable::TableRow::m_sortCriteria'                                                                                                    
objectinfotable.cpp:(.text+0x4073): undefined reference to `reports::ListTable::TableRow::m_sortCriteria'                                                                                                    
../kmymoney2/reports/libreports.a(objectinfotable.o): In function `reports::ObjectInfoTable::ObjectInfoTable(MyMoneyReport const&)':                                                                          
objectinfotable.cpp:(.text+0x4295): undefined reference to `reports::ListTable::ListTable(MyMoneyReport const&)'                                                                                              
../kmymoney2/reports/libreports.a(objectinfotable.o): In function `reports::ObjectInfoTable::ObjectInfoTable(MyMoneyReport const&)':                                                                          
objectinfotable.cpp:(.text+0x42e5): undefined reference to `reports::ListTable::ListTable(MyMoneyReport const&)'                                                                                              
../kmymoney2/reports/libreports.a(objectinfotable.o): In function `void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)':                                                                                                  
objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x19e): undefined reference to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const'                                        
objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x45d): undefined reference to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const'                                        
objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x483): undefined reference to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const'                                        
objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x581): undefined reference to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const'                                        
objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x727): undefined reference to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const'                                        
../kmymoney2/reports/libreports.a(objectinfotable.o):objectinfotable.cpp:(.text._Z15qHeapSortHelperI18QValueListIteratorIN7reports9ListTable8TableRowEES3_EvT_S5_T0_j[void qHeapSortHelper<QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow>(QValueListIterator<reports::ListTable::TableRow>, QValueListIterator<reports::ListTable::TableRow>, reports::ListTable::TableRow, unsigned int)]+0x863): more undefined references to `reports::ListTable::TableRow::operator<(reports::ListTable::TableRow const&) const' follow                                                                              
../kmymoney2/reports/libreports.a(objectinfotable.o): In function `reports::ListTable::~ListTable()':  
objectinfotable.cpp:(.text._ZN7reports9ListTableD2Ev[reports::ListTable::~ListTable()]+0xe): undefined reference to `vtable for reports::ListTable'                                                          
../kmymoney2/reports/libreports.a(objectinfotable.o):(.rodata._ZTVN7reports15ObjectInfoTableE[vtable for reports::ObjectInfoTable]+0x10): undefined reference to `reports::ListTable::renderHTML() const'    
../kmymoney2/reports/libreports.a(objectinfotable.o):(.rodata._ZTVN7reports15ObjectInfoTableE[vtable for reports::ObjectInfoTable]+0x14): undefined reference to `reports::ListTable::renderCSV() const'      
../kmymoney2/reports/libreports.a(objectinfotable.o):(.rodata._ZTVN7reports15ObjectInfoTableE[vtable for reports::ObjectInfoTable]+0x1c): undefined reference to `reports::ListTable::dump(QString const&, QString const&) const'                                                                                    
../kmymoney2/reports/libreports.a(objectinfotable.o):(.rodata._ZTIN7reports15ObjectInfoTableE[typeinfo for reports::ObjectInfoTable]+0x8): undefined reference to `typeinfo for reports::ListTable'          
../kmymoney2/dialogs/libdialogs.a(kbalancechartdlg.o): In function `KBalanceChartDlg::KBalanceChartDlg(MyMoneyAccount const&, QWidget*, char const*)':
kbalancechartdlg.cpp:(.text+0x602): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'
kbalancechartdlg.cpp:(.text+0x639): undefined reference to `reports::PivotTable::drawChart(reports::KReportChartView&) const'
../kmymoney2/dialogs/libdialogs.a(kbalancechartdlg.o): In function `KBalanceChartDlg::KBalanceChartDlg(MyMoneyAccount const&, QWidget*, char const*)':
kbalancechartdlg.cpp:(.text+0x1892): undefined reference to `reports::PivotTable::PivotTable(MyMoneyReport const&)'
kbalancechartdlg.cpp:(.text+0x18c9): undefined reference to `reports::PivotTable::drawChart(reports::KReportChartView&) const'
collect2: ld returned 1 exit status
make[4]: *** [kmymoney2] Error 1
make[4]: Leaving directory `/home/cactusbin/kmymoney2/kmymoney2-0.9.3/kmymoney2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/cactusbin/kmymoney2/kmymoney2-0.9.3/kmymoney2'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/cactusbin/kmymoney2/kmymoney2-0.9.3/kmymoney2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cactusbin/kmymoney2/kmymoney2-0.9.3'
make: *** [all] Error 2


------------------------------------------------------------------------------

_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (278 bytes) Download Attachment

 « Return to Thread: collect2: ld returned 1 exit status