Results 1 to 7 of 7

Thread: unable to run my first extended application

  1. #1
    Join Date
    Jan 2010
    Location
    tamil nadu,thanjavur
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default unable to run my first extended application

    Hello people,
    I am using the ebook "THE ART OF BUILDING QT APPLICATIONS".I typed the program on page 71.I typed the program exactly same as in the book.The following errors comes up many times.
    undefined reference to `vtable for ByteConverterDialog'
    I am attatching the files ....
    Thanks
    Attached Files Attached Files

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

    Default Re: unable to run my first extended application

    "undefined reference to `vtable" normally means the MOC hasn't been run. If your using Qt creator, run qmake, else you need to ensure MOC is being run.

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

    Noks (17th January 2010)

  4. #3
    Join Date
    Jan 2010
    Location
    tamil nadu,thanjavur
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: unable to run my first extended application

    Well Thanks that worked.But if i am using the ide how do i ensure that qmake is being run.I made it run from the qt cmd

  5. #4
    Join Date
    Jan 2010
    Location
    tamil nadu,thanjavur
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: unable to run my first extended application

    Well there's a logical error to in the program.As i am a noob its quite difficult for me to figure it out.i have well understood the program but even after trying a lot couldn't detect the error.Could someone please help me
    Thanks

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

    Default Re: unable to run my first extended application

    Quote Originally Posted by Noks View Post
    Well Thanks that worked.But if i am using the ide how do i ensure that qmake is being run.I made it run from the qt cmd
    In the "build" menu there's an option "run qmake"

    As for your other error, I've no idea. Post more details.

  7. #6
    Join Date
    Jan 2010
    Location
    tamil nadu,thanjavur
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: unable to run my first extended application

    Well that build option runs and it creates the makefile.now how do i run mingw32-make from the ide.and abt the logical error see...i have attached the files you just run it once you will get to see the prob...
    and one last thing you are really doing a gr8 wrk man...i see you continuosly helping folks...keep it up
    Thanks

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

    Default Re: unable to run my first extended application

    Build -> Build Project

Similar Threads

  1. Extended cannon example - My first little Qt project
    By FS Lover in forum Qt-based Software
    Replies: 8
    Last Post: 23rd November 2009, 06:09
  2. How to use qtopiadesktop in qt-extended-4.4.2?
    By jevonwang in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 11th May 2009, 08:21
  3. Unable to successfully create Qt application
    By remy06 in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2009, 14:51
  4. Extended Tooltip
    By aamer4yu in forum Qt Programming
    Replies: 12
    Last Post: 26th July 2008, 12:18
  5. unable to run Console application
    By jay in forum Qt Programming
    Replies: 4
    Last Post: 12th June 2008, 08:33

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.