Split project to modules
Copy&Paste and reusing files
• Obviously copy&paste is bad
• Reusing files is bad also because we cannot
  change structure of project
Static libraries
• This is compiled unlinked code
• Using static libraries makes your application
  bigger
• If you change static library, you must rebuild
  the whole project
• With static library you cannot load only
  needed functionality
• Public interface
Dynamically loaded libraries
• This is compiled and linked code
• Dll Export/Import
• Export library
• Dll can be changed without rebuilding the
  application
• Implicit/Explicit linking
Information to think on
• http://accu.org/index.php/journals/1718

cpp-2013 #17 Libraries

  • 1.
  • 2.
    Copy&Paste and reusingfiles • Obviously copy&paste is bad • Reusing files is bad also because we cannot change structure of project
  • 3.
    Static libraries • Thisis compiled unlinked code • Using static libraries makes your application bigger • If you change static library, you must rebuild the whole project • With static library you cannot load only needed functionality • Public interface
  • 4.
    Dynamically loaded libraries •This is compiled and linked code • Dll Export/Import • Export library • Dll can be changed without rebuilding the application • Implicit/Explicit linking
  • 5.
    Information to thinkon • http://accu.org/index.php/journals/1718