PDA

View Full Version : plz detect the error



jjbabu
12th September 2007, 13:37
Hi to all,
why this error is comming while compiling the "qextserialport1.1"on my windows Os.

./release\moc_qesptest.o(.text+0x0):moc_qesptest.cpp : multiple definition of `Qe
spTest::metaObject() const'
./release\moc_QespTest.o(.text+0x0):moc_qesptest.cpp : first defined here
./release\moc_qesptest.o(.text+0x10):moc_qesptest.cp p: multiple definition of `Q
espTest::qt_metacast(char const*)'
./release\moc_QespTest.o(.text+0x10):moc_qesptest.cp p: first defined here
./release\moc_qesptest.o(.text+0x60):moc_qesptest.cp p: multiple definition of `Q
espTest::qt_metacall(QMetaObject::Call, int, void**)'
./release\moc_QespTest.o(.text+0x60):moc_qesptest.cp p: first defined here
./release\moc_qesptest.o(.data+0x0):moc_qesptest.cpp : multiple definition of `Qe
spTest::staticMetaObject'
./release\moc_QespTest.o(.data+0x0):moc_qesptest.cpp : first defined here
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\1234.exe] Error 1
mingw32-make[1]: Leaving directory `D:/Qt/1234'
mingw32-make: *** [release] Error 2



plz provide any suggessions.thank u.

ggrinder
12th September 2007, 14:46
Okay, first of all this is not a compiler error but a linker error.

It means that their are to meta object files for the same class. On is
lower case and the other is not.

Because of the little information given I can only sepculate about the
reason. By taking a brief look on the mentioned sources I suppose
it comes from the fact that the author of the program included the
header QespTest.h in lower case in the QespTest.cpp file. Try to
change it to the right case, then rebuilt your project file and
try it again.

If the error remains please post your .pro file.