Results 1 to 2 of 2

Thread: Adding Library Methods - Static Vs Dynamic

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Adding Library Methods - Static Vs Dynamic

    I need to add a library to my Qt application.
    The question is, given that the application will be cross-platform, and the library is QSerialDevice, what is the best method - static or dynamic?
    What are the tradeoffs between the two methods?

    Thanks for your advice!

  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: Adding Library Methods - Static Vs Dynamic

    Quote Originally Posted by waynew View Post
    The question is, given that the application will be cross-platform, and the library is QSerialDevice, what is the best method - static or dynamic?
    It doesn't matter, both are ok.

    What are the tradeoffs between the two methods?
    Dynamic means one more file to deploy, static means the main binary size is bigger.
    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.


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

    waynew (15th January 2010)

Similar Threads

  1. Generating a static and dynamic library
    By elcuco in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2011, 11:46
  2. Static vs. Dynamic
    By hosseinyounesi in forum Qt Programming
    Replies: 2
    Last Post: 24th July 2009, 11:21
  3. Linking Qt in a dynamic library
    By dave_mm0 in forum Qt Programming
    Replies: 4
    Last Post: 18th July 2009, 16:28
  4. How to use a Dynamic Link Library with QT / C++.
    By nivaldonicolau in forum Newbie
    Replies: 5
    Last Post: 29th April 2009, 14:05
  5. Virtual static methods alternative :D
    By hickscorp in forum General Programming
    Replies: 8
    Last Post: 4th January 2008, 17:59

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.