Results 1 to 2 of 2

Thread: use static lib in qt application using qt creator

  1. #1
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default use static lib in qt application using qt creator

    Dear All,
    I have created simple static win32 lib using visual studio 2008 and I would like to add it in my qt project using Qt creator.
    I have already added it using AddLibrary option but while calling lib function it gives me compilation error...
    "undefined reference function"

    I already show there is some compatibility issue.
    http://www.qtcentre.org/threads/2601...tor-on-Windows

    how to fix this. I am using qt 5.3.

    If anyone has any idea or some link, please advice.

    Thanks,
    Last edited by Rajesh.Rathod; 14th September 2016 at 07:27.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: use static lib in qt application using qt creator

    Add a directive (LIBS+=...) to link the library in your project file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Linking Static Library with Qt Creator
    By augusbas in forum Qt Tools
    Replies: 3
    Last Post: 12th September 2013, 06:08
  2. Replies: 1
    Last Post: 28th August 2011, 00:18
  3. Replies: 0
    Last Post: 17th March 2010, 22:52
  4. Replies: 1
    Last Post: 13th January 2010, 23:35
  5. build static Qt Creator
    By rubenvb in forum Qt Tools
    Replies: 3
    Last Post: 18th November 2009, 20:16

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.