Results 1 to 7 of 7

Thread: How to add external Header files and libraries?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to add external Header files and libraries?

    header files: include them in your code
    lib files: add LIBS += -l<libname> to .pro file of your project
    dll files: these are not required for compilation.
    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.


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

    Zlatomir (30th September 2010)

  3. #2
    Join Date
    Sep 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to add external Header files and libraries?

    What if I wish to add a .dll file to my project rather than a .lib? It doesn't seem to recognize that format.

  4. #3
    Join Date
    Sep 2010
    Posts
    145
    Thanks
    1
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to add external Header files and libraries?

    You don't. Your project relies on X.lib which in turns relies on X.dll. Your project does not need X.dll to compile, only for execution.

Similar Threads

  1. QtCreator and external libraries
    By GiuseppeBonfa in forum Qt Tools
    Replies: 6
    Last Post: 21st May 2012, 23:26
  2. Replies: 4
    Last Post: 22nd May 2011, 13:36
  3. Replies: 6
    Last Post: 10th November 2009, 15:18
  4. Replies: 4
    Last Post: 7th May 2009, 07:19
  5. Does Qt have his proper libraries to handle files?
    By Colx007 in forum Qt Programming
    Replies: 2
    Last Post: 9th October 2007, 15:52

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.