Projects and Libraries

When writing C++ programs, especially when using several classes as will most likely be the case when using the book A Computer Science Tapestry, you'll need to create projects when using one of the programming environments on PCs/Macs. For example, using Visual C++, Borland/Turbo C++, or Metrowerks Codewarrior requires using projects if you're going to use multiple classes in a program the "right way".

A separate document discusses compiling, linking, and libraries conceptually and in considerable detail.

It's also useful to create a library of commonly used classes so that you don't have need to add many, many .cpp files to each project you and your students write. Creating libraries of commonly used classes makes it much easier to keep things up-to-date and simplifies what students must do to have access to classes as supplied in Tapestry.

Instructions for creating projects and libraries for four families of compilers are accessible. Some of these instructions were written as part of a workshop for teachers of Advanced Placement courses, but are applicable to users of A Computer Science Tapestry as well. You may see references to classes apstring and apvector; these are the AP equivalents of the string and Vector classes used in A Computer Science Tapestry.

If you have questions/comments, please let me know.

Owen L. Astrachan
Last modified: Mon Aug 25 11:26:27 EDT 1997