Next: 2.2 Avoiding Name Collisions
Up: 2 Compiling And Running
Previous: 2 Compiling And Running
To use the Omega Library in an existing C++ application,
it is necessary to:
- Use the makefile included in the release to make libomega.a if it
doesn't already exists.
- Include -lomega
as an option to the linker.
- Include -Ldir
as an option to the linker, where
dir
is a directory that contains libomega.a
.
- Add the line #include "omega.h"
to each application source
file that references Omega library data structures or functions.
- If the include file omega.h
and the associated
omega
subdirectory have not been placed in a standard include
directory on your system,
use -Idir/include
as an option to the compiler, where
dir
is a directory that contains the include directory from
this release.
- Make any modifications that are needed to get the Omega Library
and your code to compile with compatible compilers (see Section
2.3).
omega@cs.umd.edu
Web Accessibility