Installation

To use the library, one must have GNU Scientific Library (GSL) installed. GSL is used in this library for mathematical and matrix manipulations. In fact, this library is intend to be an extension of GSL.

Two optional software are GNU Plot and GNU Octave, which are used to plot the curves.

To build the library, copy it to the desired location, and type make to build the shared library file ``libblahut.so''. To link with this library, one must:

  1. Include blahut.h in the source files
  2. Include /path/to/lib (path where ``libblahut.so'' locates) to the LD_LIBRARY_PATH environment
  3. At the link stage, append linking options
    -L/path/to/lib -lm -lblahut `gsl-config --libs`
    
    to the linker command
make clan will clean all the built objects and executables.

An alternative way to use the library is even more straightforward: just compile the blahut.c to blahut.o, and then link the object file together with other object files. Note that when linking all the object files, append the option `gsl-config --libs` to the linker, as GSL is used in the algorithm.



Kefei Lu 2008-05-15