Results 1 to 6 of 6

Thread: QT Unit Testing moc problem "unresolved external symbol" for QMetaObject

Threaded View

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

    Default Re: QT Unit Testing moc problem "unresolved external symbol" for QMetaObject

    No, I don't think so. The .pro file is telling qmake to use "TEMPLATE = app".
    Yes he is.
    As I said:
    helloworld is not a lib, but an app
    Which is what the pro file for HelloWorld is saying, as TEMPLATE=app says.
    But to the test you are telling HellowWorld is a lib:
    Qt Code:
    1. LIBS += -L"$$OUT_PWD/../HelloWorld/release"
    2. LIBS += -lHelloWorld
    To copy to clipboard, switch view to plain text mode 

    It could be however that there are other problems as well.
    ==========================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.

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

    d_stranz (25th January 2017)

Similar Threads

  1. Replies: 13
    Last Post: 6th May 2019, 23:02
  2. Replies: 4
    Last Post: 9th May 2016, 12:30
  3. Replies: 1
    Last Post: 25th February 2016, 17:17
  4. Replies: 4
    Last Post: 5th January 2011, 15:51
  5. Unresolved external symbol "staticMetaObject"
    By sr71 in forum Qt Programming
    Replies: 5
    Last Post: 29th June 2010, 23:26

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.