I have a successfull prototype for the TrayIcon code that I try to integrate to my main application. I get the following strange compile errors :
Qt Code:
C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text+0x100) In function `ZNK17ApplicationWindow10metaObjectEv': 46 C:\root\dev\Qt\sms data\sms\moc_mainwindow.cpp multiple definition of `ApplicationWindow::metaObject() const' 59 C:\root\dev\Qt\sms data\sms\moc_menu.o(.text+0x100):C:\root\dev\Qt\sms data\sms\moc_menu.cpp first defined here C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text+0x10a) In function `ZN17ApplicationWindow11qt_metacastEPKc': 51 C:\root\dev\Qt\sms data\sms\moc_mainwindow.cpp multiple definition of `ApplicationWindow::qt_metacast(char const*)' 64 C:\root\dev\Qt\sms data\sms\moc_menu.o(.text+0x10a):C:\root\dev\Qt\sms data\sms\moc_menu.cpp first defined here C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text+0x158) In function `ZN17ApplicationWindow11qt_metacallEN11QMetaObject4CallEiPPv': 59 C:\root\dev\Qt\sms data\sms\moc_mainwindow.cpp multiple definition of `ApplicationWindow::qt_metacall(QMetaObject::Call, int, void**)' 72 C:\root\dev\Qt\sms data\sms\moc_menu.o(.text+0x158):C:\root\dev\Qt\sms data\sms\moc_menu.cpp first defined here C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text$_ZN17ApplicationWindowD0Ev[ApplicationWindow::~ApplicationWindow()]+0x0) In function `ZThn8_N17ApplicationWindowD1Ev': 72 C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text$_ZN17ApplicationWindowD0Ev[ApplicationWindow::~ApplicationWindow()]+0x0) multiple definition of `ApplicationWindow::~ApplicationWindow()' 136 C:\root\dev\Qt\sms data\sms\menu.o(.text+0x44e4):C:\root\dev\Qt\sms data\sms\menu.cpp first defined here C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text$_ZN17ApplicationWindowD1Ev[ApplicationWindow::~ApplicationWindow()]+0x0) In function `ZThn8_N17ApplicationWindowD1Ev': 136 C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.text$_ZN17ApplicationWindowD1Ev[ApplicationWindow::~ApplicationWindow()]+0x0) multiple definition of `ApplicationWindow::~ApplicationWindow()' 136 C:\root\dev\Qt\sms data\sms\menu.o(.text+0x3eb8):C:\root\dev\Qt\sms data\sms\menu.cpp first defined here C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.data+0x0) In function `ZThn8_N17ApplicationWindowD1Ev': 136 C:\root\dev\Qt\sms data\sms\moc_mainwindow.o(.data+0x0) multiple definition of `ApplicationWindow::staticMetaObject' 2493 C:\root\dev\Qt\sms data\sms\moc_menu.o(.data+0x0):C:\Dev-Cpp\include\c++\3.4.2\bits\locale_facets.tcc first defined here 2493 C:\root\dev\Qt\sms data\sms\moc_menu.o(.data+0x0):C:\Dev-Cpp\include\c++\3.4.2\bits\locale_facets.tcc ld returned 1 exit status C:\root\dev\Qt\sms data\sms\Makefile [Build Error] [sms.exe] Error 1To copy to clipboard, switch view to plain text mode
I don't where to start looking for the problem.
Do you ?
Do you want me to sow some of my code ?
Bookmarks