EasyLocal++ Installation

What is needed

In order to install and use EasyLocal++ you must be sure that the target machine provides, at least, the following components (an up-to-date Linux distribution should fulfill all the requirements, as well as the Cygwin environment under Windows 95/98/ME).

GNU gzip version > 1.2
GNU g++ compiler version > 2.95.2
GNU make version > 3.78
GNU bison version > 1.28
GNU flex version > 2.5

The framework has been tested with the above specified configuration, although, in principle, it could be used with different compilers and different versions of the above mentioned tools. In fact, the framework has been developed exploiting only the C++ standard classes and the STL library. Yet, the details on how to port the framework on different compilers/tools platform is out of the scope of this document.
Installing EasyLocal++

To install the framework you have to unpack the file miniEasyLocalpp-0.2.tar.gz in the target directory by typing:

> gunzip -c miniEasyLocalpp-0.2.tar.gz | tar -xf -

This command will create a directory called miniEasyLocal++/ which contains all the distribution tree.

Compiling the EasyLocal++ library

Once you are sure that the suite of tools required are provided in order to compile the library simply type:

> make
in the root directory of the distribution.

The outcome of the compilation is the static library libEasyLocal.a, which must be linked with every file that uses the framework classes. Namely, it contains all the class implementations that do not need to be instantiated at the compile time (i.e., no template classes), and the compiled version of the ExpSpec language interpreter.

Using the framework

In order to use the EasyLocal++ classes in an application the following steps are needed:

Add the #include <EasyLocal>directive in any file that uses the framework classes This directive automatically includes the appropriate header file that contains the interface of the classes and the code file which contains the template implementations (that need to be instantiated at the compile time).
Set the compiler to look for the EasyLocal++ files by adding the option -I<EasyLocal++ directory>/src to the compilation command line, e.g.:

> g++ -c -I<EasyLocal++ directory>/src MyEasyLocalApplication.cpp

Link the object files of your application with the EasyLocal++ library by adding the options -L<EasyLocal++ directory>/lib -lEasyLocal to the linking command line, e.g.:
> g++ -L<EasyLocal++ directory>/lib -lEasyLocal MyEasyLocalApplication.o -o MyApplication

Last modified: May 31 2004 13:06:24.

© 1998-2004 Andrea Schaerf & Luca Di Gaspero
Dipartimento di Ingegneria Elettrica, Gestionale e Meccanica
Università  degli Studi di Udine
Via delle Scienze, 206
I - 33100 Udine - ITALY