Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 7. Libraries and Design Patterns > Building and Reusing Libraries

7.1. Building and Reusing Libraries

Many of our examples link with various libraries that we have supplied. You can download the tarball src.tar.gz containing the code and libraries we use from our [dist] directory.[4] Unpack the tarball and create a shell/environment variable CPPLIBS that contains the absolute path to the src/libs directory.

[4] The URL can be found in the “Bibliography.”

Note

When we set up projects that reuse these libraries, we always assume that the shell/ environment variable CPPLIBS (or %CPPLIBS% in Windows) has been properly set to contain the libs root.

This variable is used for two purposes: It is the parent directory of all the C++ source code for libraries supplied by us (or by you), and it is the destination directory of the compiled shared object code for those libraries.



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial