Results 1 to 3 of 3

Thread: QCreator - undefined reference link errors

  1. #1

    Default QCreator - undefined reference link errors

    I'm experimenting with the current release of QCreator, which so far is quite nice. I'm having a qmake issue however.

    I have two projects:

    1) core - library
    2) test_core - console app

    The core project includes one class MyClass. My test_core.cpp file simply does this:

    Qt Code:
    1. MyClass c;
    To copy to clipboard, switch view to plain text mode 

    When I build test_core I get undefined symbols. I've added the following to test_core.pro:

    Qt Code:
    1. LIBS += -L..\core\debug -lcore
    To copy to clipboard, switch view to plain text mode 

    But that doesn't make any difference. I'm doing something silly - any ideas?

  2. #2
    Join Date
    Apr 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QCreator - undefined reference link errors

    There is a similar error msg in my project too!
    But it's a compiler error: moc_netman.cpp:66: undefined reference to `NetMan::loginServer()'

  3. #3
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: QCreator - undefined reference link errors

    Did you export the class?
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 15:22
  2. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 18:33
  3. MS Sql native driver??
    By LordQt in forum Qt Programming
    Replies: 4
    Last Post: 9th October 2007, 14:41
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 15:28
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 20:15

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.