Results 1 to 5 of 5

Thread: [SOLVED] Qt: Signals and slots Error: undefined reference to `vtable for

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt: Signals and slots Error: undefined reference to `vtable for

    Running make clean or make distclean is nothing to do with re-freshing an old makefile. For that you need to run qmake.

    Also, you don't have to seperate the code from the header as long as you inform qmake that you have done so by adding the line '#include "filename.moc"' to the end of your source file.

  2. The following user says thank you to squidge for this useful post:

    TheIndependentAquarius (2nd May 2011)

  3. #2
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: Qt: Signals and slots Error: undefined reference to `vtable for

    Thanks, I'll try that in my next example.

Similar Threads

  1. undefined reference to 'vtable ...'
    By GUIman in forum Newbie
    Replies: 5
    Last Post: 10th March 2011, 01:38
  2. Undefined reference to 'vtable for XXX'
    By Sheng in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2008, 15:59
  3. Replies: 5
    Last Post: 7th November 2007, 14:46
  4. Error : undefined reference to `vtable for MyClass'
    By joseph in forum Qt Programming
    Replies: 23
    Last Post: 15th June 2007, 11:21
  5. Replies: 5
    Last Post: 14th February 2006, 23:43

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.