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
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
subdirectory have not been placed in a standard include
directory on your system,
as an option to the compiler, where
is a directory that contains the include directory from
- Make any modifications that are needed to get the Omega Library
and your code to compile with compatible compilers (see Section