Multiple definition errors
Stephen Dzurenko
dzurenko at arlut.utexas.edu
Tue Mar 25 16:29:29 GMT 2003
Hello,
I'm using KDevelop 2.1.4, Qt Designer 2.0, and Qt 3.0.5.
I'm getting some odd Multiple Definition errors when I attempt to build
my application. I've included the error messages below. Can anyone
tell from the output what might be my problem? Am I using the wrong
version of Qt?
Thanks.
-Steve
myapp.o: In function `QShared::deref(void)':
/usr/lib/qt3-gcc2.96/include/qmetaobject.h(.text+0x0): multiple
definition of `LWSB_MainWindow::LWSB_MainWindow(QWidget *, char const *,
unsigned int)'
myapp.o(.text+0x0):/usr/lib/qt3-gcc2.96/include/qmetaobject.h: first
defined here
myapp.o: In function `LWSB_MainWindow::trUtf8(char const *, char const
*)':
/home/steve/myapp/myapp/myapp.moc:40: multiple definition of
`LWSB_MainWindow::trUtf8(char const *, char const *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:40: first defined here
myapp.o: In function `LWSB_MainWindow::~LWSB_MainWindow(void)':
/home/steve/myapp/myapp/myapp.cpp:689: multiple definition of
`LWSB_MainWindow::~LWSB_MainWindow(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:689: first defined here
myapp.o: In function `LWSB_MainWindow::fileNew(void)':
/home/steve/myapp/myapp/myapp.cpp:694: multiple definition of
`LWSB_MainWindow::fileNew(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:694: first defined here
myapp.o: In function `LWSB_MainWindow::fileOpen(void)':
/home/steve/myapp/myapp/myapp.cpp:699: multiple definition of
`LWSB_MainWindow::fileOpen(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:699: first defined here
myapp.o: In function `LWSB_MainWindow::fileSave(void)':
/home/steve/myapp/myapp/myapp.cpp:704: multiple definition of
`LWSB_MainWindow::fileSave(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:704: first defined here
myapp.o: In function `LWSB_MainWindow::fileSaveAs(void)':
/home/steve/myapp/myapp/myapp.cpp:709: multiple definition of
`LWSB_MainWindow::fileSaveAs(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:709: first defined here
myapp.o: In function `LWSB_MainWindow::filePrint(void)':
/home/steve/myapp/myapp/myapp.cpp:714: multiple definition of
`LWSB_MainWindow::filePrint(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:714: first defined here
myapp.o: In function `LWSB_MainWindow::fileExit(void)':
/home/steve/myapp/myapp/myapp.cpp:719: multiple definition of
`LWSB_MainWindow::fileExit(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:719: first defined here
myapp.o: In function `LWSB_MainWindow::editUndo(void)':
/home/steve/myapp/myapp/myapp.cpp:724: multiple definition of
`LWSB_MainWindow::editUndo(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:724: first defined here
myapp.o: In function `LWSB_MainWindow::editRedo(void)':
/home/steve/myapp/myapp/myapp.cpp:729: multiple definition of
`LWSB_MainWindow::editRedo(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:729: first defined here
myapp.o: In function `LWSB_MainWindow::editCut(void)':
/home/steve/myapp/myapp/myapp.cpp:734: multiple definition of
`LWSB_MainWindow::editCut(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:734: first defined here
myapp.o: In function `LWSB_MainWindow::editCopy(void)':
/home/steve/myapp/myapp/myapp.cpp:739: multiple definition of
`LWSB_MainWindow::editCopy(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:739: first defined here
myapp.o: In function `LWSB_MainWindow::editPaste(void)':
/home/steve/myapp/myapp/myapp.cpp:744: multiple definition of
`LWSB_MainWindow::editPaste(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:744: first defined here
myapp.o: In function `LWSB_MainWindow::editFind(void)':
/home/steve/myapp/myapp/myapp.cpp:749: multiple definition of
`LWSB_MainWindow::editFind(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:749: first defined here
myapp.o: In function `LWSB_MainWindow::helpIndex(void)':
/home/steve/myapp/myapp/myapp.cpp:754: multiple definition of
`LWSB_MainWindow::helpIndex(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:754: first defined here
myapp.o: In function `LWSB_MainWindow::helpContents(void)':
/home/steve/myapp/myapp/myapp.cpp:759: multiple definition of
`LWSB_MainWindow::helpContents(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:759: first defined here
myapp.o: In function `LWSB_MainWindow::helpAbout(void)':
/home/steve/myapp/myapp/myapp.cpp:764: multiple definition of
`LWSB_MainWindow::helpAbout(void)'
myapp.o:/home/steve/myapp/myapp/myapp.cpp:764: first defined here
myapp.o: In function `LWSB_MainWindow::className(void) const':
/home/steve/myapp/myapp/myapp.moc:23: multiple definition of
`LWSB_MainWindow::className(void) const'
myapp.o:/home/steve/myapp/myapp/myapp.moc:23: first defined here
myapp.o: In function `QShared::deref(void)':
/usr/lib/qt3-gcc2.96/include/qmetaobject.h(.data+0x0): multiple
definition of `LWSB_MainWindow::metaObj'
myapp.o(.data+0x0):/usr/lib/qt3-gcc2.96/include/qmetaobject.h: first
defined here
myapp.o: In function `LWSB_MainWindow::tr(char const *, char const *)':
/home/steve/myapp/myapp/myapp.moc:32: multiple definition of
`LWSB_MainWindow::tr(char const *, char const *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:32: first defined here
myapp.o: In function `LWSB_MainWindow::staticMetaObject(void)':
/home/steve/myapp/myapp/myapp.moc:51: multiple definition of
`LWSB_MainWindow::staticMetaObject(void)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:51: first defined here
myapp.o: In function `LWSB_MainWindow::qt_cast(char const *)':
/home/steve/myapp/myapp/myapp.moc:101: multiple definition of
`LWSB_MainWindow::qt_cast(char const *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:101: first defined here
myapp.o: In function `LWSB_MainWindow::qt_invoke(int, QUObject *)':
/home/steve/myapp/myapp/myapp.moc:107: multiple definition of
`LWSB_MainWindow::qt_invoke(int, QUObject *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:107: first defined here
myapp.o: In function `LWSB_MainWindow::qt_emit(int, QUObject *)':
/home/steve/myapp/myapp/myapp.moc:131: multiple definition of
`LWSB_MainWindow::qt_emit(int, QUObject *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:131: first defined here
myapp.o: In function `LWSB_MainWindow::qt_property(int, int, QVariant
*)':
/home/steve/myapp/myapp/myapp.moc:137: multiple definition of
`LWSB_MainWindow::qt_property(int, int, QVariant *)'
myapp.o:/home/steve/myapp/myapp/myapp.moc:137: first defined here
collect2: ld returned 1 exit status
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list