CIS 29 - Notes for Tuesday, 1/19

Announcements and Reminders

  • Assignment 2 is due next Tuesday, 1/26
  • Online time tomorrow night 7:00-8:15 pm - SFML demonstration and discussion
  • First Project Group Meeting Today at 2:30
Recording

Libraries

Why use libraries?

  • To avoid reinventing the wheel
  • To facilitate organization of your code
  • To be able to independently code and test functions, classes, modules
  • To share code

Types of libraries

TypeHow It worksFile extensionsPlatform
staticCode is fetched from the library archive and inserted into the executable.a
.lib (MSVS)
all
dynamicThe library is loaded into memory or cache memory and code is retrieved as needed.dll (windows)
.dylib (mac)
pc & mac
sharedThe library, or parts of it, is loaded into memory or cache memory and code is retrieved as needed.  The library may be shared among multiple users.so or .so#Linux
run timeThis library is used to run an application.  It is not part of the compilation..so
.dll
all

How to

Organize File Directory Structure

Demonstration

Directory File Structure

Source files

  • Code::Blocks

  • MS Visual Studio

  • Linux


First Project Group Meeting