Results 1 to 2 of 2

Thread: plz detect the error

  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy plz detect the error

    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.

  2. #2
    Join Date
    Dec 2006
    Posts
    9
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: plz detect the error

    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.

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  3. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  4. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.