Results 1 to 11 of 11

Thread: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    The qwt library is in my linking path, but it does seem to be a problem with the linker.

    Removing Q_OBJECT macro from the histPlot.h header didn't help. Let me know if theres anything else that would be helpful to see -- I'd really like to resolve this quickly

  2. #2
    Join Date
    Jan 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    The error changes a bit when Q_OBJECT is removed:
    Qt Code:
    1. histPlot.o:(.rodata._ZTV8HistPlot[vtable for HistPlot]+0x18): undefined reference to `QwtPlot::qt_metacast(char const*)'
    2. histPlot.o:(.rodata._ZTV8HistPlot[vtable for HistPlot]+0x20): undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'
    3. collect2: ld returned 1 exit status
    4. make: *** [timeClock] Error 1
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    Got it working. Updated to the latest Qwt and linking completes.

  4. #4
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    I have the same problem, only I'm already using qwt-5.2.0 so I can't update.
    This project works on another computer not mine. I can compile and run qwt examples
    Any ideas what the problem might be?

  5. #5
    Join Date
    Oct 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    I don't have a build environment handy to verify this advice, but the error looks familiar...

    Make sure QWT_DLL is defined in your compiler flags.

  6. #6
    Join Date
    Sep 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    I solved this problem by changing the install dir of qwt to /usr, this in linux

  7. #7
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 879 Times in 827 Posts

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    Quote Originally Posted by mendes View Post
    I solved this problem by changing the install dir of qwt to /usr, this in linux
    Whatever solved the problem in your particular situation - changing the install dir to /usr has absolutely nothing to do with it.

    Uwe

  8. #8
    Join Date
    Dec 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'

    I receive the same error when I changed qwt from shared lib to static library under linux. any idea what may be the issue? thanks.

Similar Threads

  1. Unable to install QT 4.4.0 from sources
    By debnathm in forum Installation and Deployment
    Replies: 4
    Last Post: 6th August 2008, 06:43
  2. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  3. MS Sql native driver??
    By LordQt in forum Qt Programming
    Replies: 4
    Last Post: 9th October 2007, 13:41
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15

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
  •  
Qt is a trademark of The Qt Company.