Results 1 to 20 of 24

Thread: Error : undefined reference to `vtable for MyClass'

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Error : undefined reference to `vtable for MyClass'

    hmm... are you sure you are using the correct qmake? (Qt4 and not Qt3)
    If you can, allow a full compile command output then we can see exactly what is being called.

    P.S
    It is REALLY not recommended to work as root!
    P.P.S
    3 ) i am poritng the application from Qt3.3.4 to Qt4.2.2
    I assume that by porting, you are not just compiling it with Qt4 - and that you changed the code to Qt4.

    Looking at the headers you are using, you are only using Qt3 headers, and Qt3 support headers from Qt4... this doesn't look correct.
    Last edited by high_flyer; 13th June 2007 at 13:21.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  2. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  3. Strange error while using Q3Canvas
    By Kapil in forum Newbie
    Replies: 13
    Last Post: 15th June 2006, 19:36
  4. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30

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.