Go to the previous, next section.
The SUIF mathematics library can be used by any program written in
c++. The library is currently compiled using the the GNU g++ compiler
version 2.4.5.
-
In order to use the math libraries you need to include the following
files in your code:
#include "suif.h"
#include "suifmath.h"
#include "dependence.h"
-
Add the following flags to the command line to compile the code.
Note that SUIFHOME is the path to the root of the SUIF
directory structure.
g++ -g -I${SUIFHOME}/include your_file.cc
-
When linking, you need to include the appropriate SUIF libraries.
g++ -o your_proc_name your_file.o -L${SUIFHOME}/${MACHINE}/lib
-ldependence -lsuifmath -lbuilder -luseful -lsuif -lm
Go to the previous, next section.