C++ LIBRARIES AT IOWA STATE Gary T. Leavens $Date: 95/01/12 09:49:50 $ Since C++ programming (and object-oriented programming in general) is largely concerned with code reuse, libraries of classes are as important as the language itself. Besides libg++, I have collected several libraries of C++ code; these can be found in subdirectories of /usr/unsup/C++/libraries/ on Com S department machines. When and if these are compiled, the .a files will be put in (subdirectories of) /usr/unsup/lib and header files will be put in (subdirectories of) /usr/unsup/include Except for libg++, to compile with these header files, you should use a compiler option like -I/usr/unsup/include and to link against the library, you should use the linker option like -L/usr/unsup/lib. 1. libg++ The g++ system comes with it's own library of base classes. There is documentation available in the following file. /usr/local/emacs/info/libg++ This can be accessed online through emacs (type C-h i to get into info mode), or using the command info on the Com S department machines (or xinfo on Project Vincent). Another source of information on libg++ is the header files in /usr/local/lib/g++-include. 2. LEDA The Library of Efficient Datatypes and Algorithms (LEDA) has documentation in the following directory. /usr/unsup/C++/libraries/LEDA-3.1c/man This manual can also be searched on-line with the following command. /usr/unsup/bin/LEDAman Examples are found in the subdirectories of /usr/unsup/C++/libraries/LEDA-3.1c/prog/ Use the -I and -L compiler flags to compile LEDA programs: g++ -I/usr/unsup/include/LEDA -L/usr/unsup/lib/LEDA/g++ ... or CC -I/usr/unsup/include/LEDA -L/usr/unsup/lib/LEDA/CC ... Then the -l option can be used to compile and link programs (see section 1.9 of the user manual): g++ -I/usr/unsup/include/LEDA -L/usr/unsup/lib/LEDA/g++ prog.c -lL or CC -I/usr/unsup/include/LEDA -L/usr/unsup/lib/LEDA/CC prog.c -lL Use -lG -lL for programs using graph data types. Use -lP -lG -lL -lm for programs using geometric data types. Use -lP -lG -lL -lWx -lX11 -lm for programs using windows. 3. Interviews Interviews is a framework for graphical user-interfaces. It is found in the following directory. /usr/unsup/C++/libraries/iv Interviews can be used with many different kinds of workstations on top of X10 or X11. It has facilities for text and graphics, and standard ways to do interactive interfaces. Documentation is found in the subdirectory iv/src/doc. 4. WHERE TO FIND MORE To find more about C++, read the usenet news group comp.lang.c++. The (answers to the) frequently asked questions from this group are stored in the directory /usr/unsup/C++/FAQ/ on Com S department machines. $Id: running-c++.txt,v 1.2 1994/12/28 23:19:47 leavens Exp leavens $