Results 1 to 3 of 3

Thread: Difference and Importance of ".a" and ".lib"

  1. #1
    Join Date
    Sep 2012
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Difference and Importance of ".a" and ".lib"

    Hi guys!

    Can someone help me with this!

    1. What's the difference between .a and .lib?
    2. When are these files being generated?
    3. How can I include libraries using .a file? and lib file?

    Thanks in advance guys!

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Difference and Importance of ".a" and ".lib"

    Those questions can't be answered so generically...

    1) .a are static libraries on Linux-es and .lib are static libraries on Windows
    2) those are generated when you build your code that is configured to output a static library (when you build Qt if you talk about that...)
    3) For Qt ones you add QT += module in the .pro file and the tools add those for you and if you talk about other libraries see LIBS and INCLUDEPATH

  3. #3
    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: Difference and Importance of ".a" and ".lib"

    Quote Originally Posted by iamDAMON View Post
    Hi guys!

    Can someone help me with this!

    1. What's the difference between .a and .lib?
    2. When are these files being generated?
    3. How can I include libraries using .a file? and lib file?

    Thanks in advance guys!
    Please post questions unrelated to Qt on the "General Programming" forum.
    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. Replies: 1
    Last Post: 7th April 2010, 22:46
  2. Replies: 3
    Last Post: 15th February 2010, 18:27
  3. Replies: 3
    Last Post: 8th July 2008, 20:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 16:58

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.