Results 1 to 20 of 38

Thread: How to add a lib to a qt project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: How to add a lib to a qt project

    Is it the only error message you get, this single line ? Aren't there any message like "undefined reference to ..." ?
    Are you sure that the path to .lib file is correct ?
    Be sure to remove LIBS += -lpg from the .pro file and add only the LIBS += "path/to/lib/libpg.lib".
    Post the whole .pro file. Try to do a clean build as well.
    Did you built the "libpg.lib" yourself ? If you've downloaded it, are you sure it's good one for your compiler ?
    ---
    if you use QtCreator, try to scroll up in the compiler output window, maybe you just see the last line.
    Last edited by stampede; 27th February 2011 at 22:09. Reason: updated contents

Similar Threads

  1. Qt project management - bigger project
    By Peppy in forum Qt Programming
    Replies: 11
    Last Post: 24th December 2010, 13:50
  2. How to add a gif to a Qt Project?
    By Bong.Da.City in forum Newbie
    Replies: 5
    Last Post: 6th September 2010, 21:51
  3. new project
    By rk0747 in forum Qt Programming
    Replies: 5
    Last Post: 17th February 2010, 08:53
  4. Replies: 1
    Last Post: 3rd December 2009, 23:34
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43

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
  •  
Qt is a trademark of The Qt Company.